This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: newB: How to debug system lib
- From: Michael Chastain <mec dot gnu at mindspring dot com>
- To: rjshaw at netspace dot net dot au, gdb at sources dot redhat dot com
- Date: Thu, 14 Oct 2004 07:57:29 -0400
- Subject: Re: newB: How to debug system lib
- References: <416E0533.3010002@netspace.net.au>
Russell Shaw <rjshaw@netspace.net.au> wrote:
> In gdb, list 'ungetc' (a gnu libc function) gives:
>
> No line number information available for address 0x400af9a0 <ungetc>
>
> I cannot step into the function either.
Try this:
(gdb) break main
(gdb) run
(gdb) disassemble ungetc
(gdb) list ungetc
The "break main; run" will run your test program far enough to load
the shared library (glibc). gdb will see the shared library after
it is loaded.
Hope this helps,
Michael Chastain