Skip to content
Commit ea299b62 authored by Florian Weimer's avatar Florian Weimer
Browse files

nptl_db: Support different libpthread/ld.so load orders (bug 27744)



libthread_db is loaded once GDB encounters libpthread, and at this
point, ld.so may not have been processed by GDB yet. As a result,
_rtld_global cannot be accessed by regular means from libthread_db.
To make this work until GDB can be fixed, acess _rtld_global through
a pointer stored in libpthread.

The new test does not reproduce bug 27744 with
--disable-hardcoded-path-in-tests, but is still a valid smoke test.
With --enable-hardcoded-path-in-tests, it is necessary to avoid
add-symbol-file because this can tickle a GDB bug.

Fixes commit 1daccf40 ("nptl: Move
stack list variables into _rtld_global").

Tested-by: default avatarEmil Velikov <emil.velikov@collabora.com>
(cherry picked from commit a64afc22)
parent 162df872
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment