From: Michael Chastain <mec.gnu@mindspring.com>
To: rjshaw@netspace.net.au, gdb@sources.redhat.com
Subject: Re: newB: How to debug system lib
Date: Thu, 14 Oct 2004 19:01:00 -0000 [thread overview]
Message-ID: <416E69A9.nail1FK186GT3@mindspring.com> (raw)
In-Reply-To: <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
next prev parent reply other threads:[~2004-10-14 11:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-14 11:56 Russell Shaw
2004-10-14 19:01 ` Michael Chastain [this message]
2004-10-14 15:37 Russell Shaw
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=416E69A9.nail1FK186GT3@mindspring.com \
--to=mec.gnu@mindspring.com \
--cc=gdb@sources.redhat.com \
--cc=rjshaw@netspace.net.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox