This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: debugging in-build-tree glibc
- From: Jakub Jelinek <jakub at redhat dot com>
- To: "David S. Miller" <davem at davemloft dot net>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Sun, 10 Apr 2005 12:56:06 +0200
- Subject: Re: debugging in-build-tree glibc
- References: <20050409164904.4cb1a49e.davem@davemloft.net>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Sat, Apr 09, 2005 at 04:49:04PM -0700, David S. Miller wrote:
>
> I know information on how people do this effectively must
> exist somewhere, but I'm having a hard time finding it.
>
> Currently I just run /path/to/build-$(PLATFORM)/elf/ld-linux.so.2
> directly under GDB and replicate the --library-path, executable
> path, et al. arguments that the build itself uses.
I usually just relink the testcase in question with additional
-Wl,-rpath,.:nptl:....whateverelse,-dynamic-linker,elf/ld.so
then GDB works just fine on it.
Jakub