$ http_proxy=pac+http://linux/proxy.pac gdb proxy
GNU gdb (GDB) 7.0-ubuntu
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/proxy...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/proxy
[Thread debugging using libthread_db enabled]
Cannot find new threads: generic error
I should add, once you do, test it with a PAC style http_proxy setting and witness the segfault:
$ http_proxy=pac+http:// linux/proxy. pac proxy www.yahoo. com/
http://
Segmentation fault (core dumped)
Unfortunately gdb fails to help:
$ http_proxy=pac+http:// linux/proxy. pac gdb proxy gnu.org/ licenses/ gpl.html> www.gnu. org/software/ gdb/bugs/>... proxy.. .(no debugging symbols found)...done.
GNU gdb (GDB) 7.0-ubuntu
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://
Reading symbols from /usr/bin/
(gdb) run
Starting program: /usr/bin/proxy
[Thread debugging using libthread_db enabled]
Cannot find new threads: generic error