This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem debugging SOs


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]