This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Fixes problem setting breakpoint in dynamic loader
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: pgilliam at us dot ibm dot com
- Cc: gdb-patches at sources dot redhat dot com
- Date: Sat, 17 Jun 2006 22:21:08 +0200 (CEST)
- Subject: Re: [patch] Fixes problem setting breakpoint in dynamic loader
- References: <1148513171.315.104.camel@dufur.beaverton.ibm.com>
> From: PAUL GILLIAM <pgilliam@us.ibm.com>
> Date: Wed, 24 May 2006 16:26:11 -0700
>
> --=-z0a1QHXPsj5sKoA5562L
> Content-Type: text/plain
> Content-Transfer-Encoding: 7bit
>
> On PowerPC-64, with 64-bit executables, GDB has been giving this message
> for a while:
>
> warning: Unable to find dynamic linker breakpoint function.
> GDB will be unable to debug shared library initializers
> and track explicitly loaded dynamic code.
>
> This is because "enable_break()" in solib-svr4.c was looking for the
> symbol "._dl_debug_state" in the 64-bit dynamic loader and not finding
> it. This should not be a surprise because these 'dot' symbols have not
> been used for a while.
Your patch removes "._dl_debug_state" from the list of symbols.
Doesn't this break debugging old binaries that still have the 'dot'
symbols?