This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Problem debugging SOs
- From: Kevin Buettner <kevinb at redhat dot com>
- To: Iztok <I at s5 dot net>, gdb at sources dot redhat dot com
- Date: Fri, 23 Aug 2002 07:53:16 -0700
- Subject: Re: Problem debugging SOs
- References: <3D6603AC.4010607@s5.net>
On Aug 23, 11:43am, Iztok wrote:
> Version 5.0
> Platform i386 Linux SuSE 7.0
>
> I've got situation when shared object is loaded at runtime via the
> dlopen function. GDB afterwards shows that the symbols from this shared
> object are loaded but when trying to step into the function from this SO
> nothing shows.
>
> Full debugging info is included in SO.
>
> How should I prepare the system to debug such SW ?
I think you may be seeing a linker bug. Newer versions of gdb have
a fix to work around the bug, but gdb-5.0 did not.
For more information, see the threads associated with:
http://sources.redhat.com/ml/gdb/2001-08/msg00221.html
http://sources.redhat.com/ml/gdb-patches/2001-09/msg00003.html
The simple fix is to update to a newer version of gdb. Either 5.2
or the current development sources should be fine.
Kevin