From: Kip Warner <kip@thevertigo.com>
To: gdb@sourceware.org
Subject: Stepping into glibc
Date: Wed, 14 Jan 2015 22:23:00 -0000 [thread overview]
Message-ID: <1421274213.29961.12.camel@thevertigo.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 761 bytes --]
Hey list,
I'm trying to debug some code with Nemiver (a Gtk+ frontend for GDB).
When I try to step into glibc functions, it complains about not being
able to find its source. e.g.
Cannot find file '/build/buildd/glibc-2.19/posix/getopt1.c'.
I have installed libc6-dbg and glibc-source packages (using Ubuntu
14.10).
Is there something I need to add to my ~/.gdbinit, such as a directory
/ set solib-absolute-prefix / set sysroot or what have you?
I could always download the source of my distro's version of glibc into
the above location, but I'm sure there is a more elegant way of
handling this.
Respectfully,
--
Kip Warner -- Senior Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
next reply other threads:[~2015-01-14 22:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-14 22:23 Kip Warner [this message]
2015-01-14 23:00 ` Simon Marchi
2015-01-14 23:12 ` Kip Warner
2015-01-15 13:12 ` Jan Kratochvil
2015-01-15 17:53 ` Kip Warner
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=1421274213.29961.12.camel@thevertigo.com \
--to=kip@thevertigo.com \
--cc=gdb@sourceware.org \
/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