From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24594 invoked by alias); 14 Jan 2015 22:23:38 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 24572 invoked by uid 89); 14 Jan 2015 22:23:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: homiemail-a82.g.dreamhost.com Received: from sub5.mail.dreamhost.com (HELO homiemail-a82.g.dreamhost.com) (208.113.200.129) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 14 Jan 2015 22:23:35 +0000 Received: from homiemail-a82.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a82.g.dreamhost.com (Postfix) with ESMTP id A137E282065 for ; Wed, 14 Jan 2015 14:23:34 -0800 (PST) Received: from kip-desktop.kip-router (unknown [69.172.169.61]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: kip@thevertigo.com) by homiemail-a82.g.dreamhost.com (Postfix) with ESMTPSA id 750FE28205F for ; Wed, 14 Jan 2015 14:23:34 -0800 (PST) Message-ID: <1421274213.29961.12.camel@thevertigo.com> Subject: Stepping into glibc From: Kip Warner To: gdb@sourceware.org Date: Wed, 14 Jan 2015 22:23:00 -0000 Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-ZTaKwfkcqwG5BrIQq4Ri" Mime-Version: 1.0 X-IsSubscribed: yes X-SW-Source: 2015-01/txt/msg00023.txt.bz2 --=-ZTaKwfkcqwG5BrIQq4Ri Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Content-length: 741 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?=20 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, --=20 Kip Warner -- Senior Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com --=-ZTaKwfkcqwG5BrIQq4Ri Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit Content-length: 181 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEABECAAYFAlS27GUACgkQLXnfK7bii20uvQCeNCmdLJs8u/4QiEggLihwZCzb IWsAn0SNBsj/JA8SbGmVnd/nm/L8PxTY =C95U -----END PGP SIGNATURE----- --=-ZTaKwfkcqwG5BrIQq4Ri--