time to workaround libc/13097 in fsf gdb?

Pedro Alves palves@redhat.com
Thu Sep 11 16:37:00 GMT 2014


On 09/11/2014 05:25 PM, Doug Evans wrote:
> Hi.
> 
> It's been three years and various people are doing similar things to
> deal with glibc's that are out there (regardless of whatever glibc
> decides to do).
> 
> http://sourceware.org/ml/gdb-patches/2011-08/msg00331.html
> 
> As for the patch itself, I wonder if the "fix" belongs in solib-svr4.c
> instead of solib.c.  E.g., where we compare the so name with "",
> also check for linux-vdso.so.1 and linux-gate.so.1 ?

Also, we know the address of the vDSO/gate (symfile-mem.c).  Can't
we use that to match instead of the name?

I think that's what Ulrich meant in
  https://sourceware.org/bugzilla/show_bug.cgi?id=13097#c1
with
 "You must already have magic code in gdb to handle this DSO".

ISTR having seen a patch that does that, but I can't seem to find it.

Thanks,
Pedro Alves



More information about the Gdb-patches mailing list