Stepping into glibc

Kip Warner <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
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
signature.asc (application/pgp-signature, 181 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEABECAAYFAlS27GUACgkQLXnfK7bii20uvQCeNCmdLJs8u/4QiEggLihwZCzb
IWsAn0SNBsj/JA8SbGmVnd/nm/L8PxTY
=C95U
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.