public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Russell Shaw <rjshaw@netspace.net.au>
To: gdb@sources.redhat.com
Subject: newB: How to debug system lib
Date: Thu, 14 Oct 2004 15:37:00 -0000	[thread overview]
Message-ID: <416E062E.7040009@netspace.net.au> (raw)

Hi,
I linked my program with:

   gcc -g -O0 -lm  -o test  main.o

ldd test gives:

libm.so.6 => /usr/lib/debug/libm.so.6 (0x40018000)
         libc.so.6 => /usr/lib/debug/libc.so.6 (0x4003a000)
         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

I had: LD_LIBRARY_PATH="/usr/lib/debug"


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.

Is there a way of doing this without statically linking?

(debian 2.6.8.1, libc6 2.3.2.ds1-17, gcc 3.4.2)


Also, does gdb need the libc source code files in addition
to the libc6-dbg binaries?

             reply	other threads:[~2004-10-14  4:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-14 15:37 Russell Shaw [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-10-14 11:56 Russell Shaw
2004-10-14 19:01 ` Michael Chastain

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=416E062E.7040009@netspace.net.au \
    --to=rjshaw@netspace.net.au \
    --cc=gdb@sources.redhat.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).