Newbie asks about .so libraries
Bennett F. Dill
bdill@linux.dillfamily.org
Wed Jan 29 22:03:00 GMT 2003
On Wed, Jan 29, 2003 at 12:17:19PM -0500, Daniel Jacobowitz wrote:
> On Wed, Jan 29, 2003 at 08:50:49AM +0000, William Trenker wrote:
> > Here's a basic question. Can gdb/insight debug code from .so files?
> >
> > I have a library, compiled with debug information, and a main
> > program, also with debug info. If I start gdb with the main program,
> > does gdb automatically dig up the debug info from any .so libraries
> > used by the main program? Can I set breakpoints on the source code
> > in the .so file?
> >
> > Or do I have to link statically for debugging purposes?
>
> It should work fine. There are a couple of quirks, though.
>
> --
> Daniel Jacobowitz
> MontaVista Software Debian GNU/Linux Developer
In my experience, when I attach to a process that includes say
libc.so.1, gdb says no debugging information found. I thought maybe I
had to recompile libc.so.1. Is that not the case? Maybe/probably I'm
doing something wrong.
Ben
More information about the Gdb
mailing list