[PATCH] Add helper script for glibc debugging

Gabriel F. T. Gomes gabriel@inconstante.net.br
Tue Sep 24 21:39:00 GMT 2019


Hi, Carlos,

On Tue, 24 Sep 2019, Carlos O'Donell wrote:

>I don't immediately see how this solves the required gdb setup though?
>
>https://sourceware.org/glibc/wiki/Testing/Builds#Required_gdb_setup
>
>Did I miss something?

I think you found a problem with the conversion from my off-tree script
to this auto-generated version.

In the off-tree script, the argument to --library-path was hardcoded and
it included the path to nptl_db, as mentioned in the wiki page I used [1]
(look for occurrences of "${GLIBC}/nptl_db:").

In the auto-generated version, I used the makefile expansion of
"$(rtld-prefix)", which I though gave the same path, but I failed to
notice that nptl_db was missing (nptl is there, but not nptl_db).

It should be easy to complement the argument to --library-path.  I'll
check if that actually solves the problem (as the wiki [1] seems to
suggest), then send another version of this patch.

Thanks for your careful review! :)

[1] https://sourceware.org/glibc/wiki/Debugging/Loader_Debugging



More information about the Libc-alpha mailing list