This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: libpython2.4.so: Cannot load symbols for shared library with separate debuginfo
- From: Daniel Jacobowitz <drow at false dot org>
- To: Alejandro Homs <ahoms at cells dot es>
- Cc: gdb at sourceware dot org
- Date: Thu, 7 Jun 2007 09:56:58 -0400
- Subject: Re: libpython2.4.so: Cannot load symbols for shared library with separate debuginfo
- References: <000001c7a907$c3fb73d0$72f95954@cells.es>
On Thu, Jun 07, 2007 at 03:28:38PM +0200, Alejandro Homs wrote:
> Hi,
>
> I am trying to debug a Python C++ extension module. I have installed:
>
> python-2.4-14:
> /usr/bin/python2.4 -> stripped
> /usr/lib/libpython.2.4.so.1.0 -> not stripped
> python-debug-info-2.4.14:
> /usr/lib/debug/usr/bin/python2.4.debug
> /usr/lib/debug/usr/lib/libpython2.4.so.1.0.debug
>
> I installed the latest gdb-6.6. When I load the core file, gdb reads the
> symbols from python2.4.debug, but it does not read the
> libpython2.4.so.1.0.debug with the debug information for the shared library.
> I guess this is because it finds some symbols already on
> libpython2.4.so.1.0, and does not attempt to search the separate debuginfo
> file.
It should always try to load the separate debug file. Is
debug-file-directory set to /usr/lib/debug, and is there a
.gnu_debuglink section in libpython.2.4.so.1.0? You may have
to debug GDB to find out what it thinks it's doing.
--
Daniel Jacobowitz
CodeSourcery