[C++-sig] Re: Howto debug boost::python under redhat/fedora linux
David Abrahams
dave at boost-consulting.com
Tue Sep 14 16:29:17 CEST 2004
"Neal D. Becker" <ndbecker2 at verizon.net> writes:
> This information might be good to add to the docs.
>
> Under Redhat/Fedora Linux, binaries are normally stripped of debugging
> symbols. This means that running 'gdb /usr/bin/python' will not be very
> useful.
>
> The debugging symbols are shipped as a seperate package. You need to
> install: (e.g.) python-debuginfo.
>
> If you are using yum, you can add this to your yum.conf:
> [debug]
> name=debug
> baseurl=http://mirror.linux.duke.edu/pub/fedora/linux/core/$releasever/$basearch/debug/
>
> Now to use it do the following:
>
> 1. gdb /usr/bin/python
> 2. sym /usr/lib/debug/usr/bin/python.debug
> 3. cd <whereever>, start your program.
> 4. After the desired shared library is loaded by python send an interrupt to
> the process and gdb will wake up, allowing you to set a breakpoint in your
> shared module.
Great, where would you suggest it be added? Could I convince you to
prepare a patch for the appropriate HTML file (and maybe check it in?)
--
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com
More information about the Cplusplus-sig
mailing list