Re: [ppc64-linux]: Recognize dl event entry point symbol

Jim Blandy
2003-06-12T21:20:32Z

Kevin Buettner <kevinb@redhat.com> writes:

> On Jun 11, 8:02am, Jim Blandy wrote:
>
> > 2003-06-11 Jim Blandy <jimb@redhat.com>
> >
> > * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
> > Linux entry point symbols for _dl_debug_state, too.
> >
> > Index: gdb/solib-svr4.c
> > ===================================================================
> > RCS file: /cvs/src/src/gdb/solib-svr4.c,v
> > retrieving revision 1.32.8.1
> > diff -c -r1.32.8.1 solib-svr4.c
> > *** gdb/solib-svr4.c 11 Jun 2003 08:57:46 -0000 1.32.8.1
> > --- gdb/solib-svr4.c 11 Jun 2003 12:59:25 -0000
> > ***************
> > *** 79,84 ****
> > --- 79,85 ----
> > "r_debug_state",
> > "_r_debug_state",
> > "_dl_debug_state",
> > + "._dl_debug_state",
> > "rtld_db_dlactivity",
> > "_rtld_debug_state",
> > NULL
>
> Okay.
>
> (I wonder why the tools implementor's felt compelled to add that
> leading ".".)

On PPC64 Linux, the symbol whose name lacks the dot points to the
function descriptor; the symbol with the dot is the entry point. So
this change works along with this patch I just posted: