This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add helper script for glibc debugging


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]