glibc/nptl_db
Florian Weimer a64afc2252 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 1daccf403b ("nptl: Move
stack list variables into _rtld_global").

Tested-by: Emil Velikov <emil.velikov@collabora.com>
2021-04-21 11:50:43 +02:00
..
db_info.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
db-symbols.awk Fix DTV race, assert, DTV_SURPLUS Static TLS limit, and nptl_db garbage 2015-03-17 00:31:49 -03:00
db-symbols.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
fetch-value.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Makefile Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
shlib-versions Remove configuration name patterns from shlib-versions. 2014-09-12 12:28:47 +00:00
structs.def nptl_db: Support different libpthread/ld.so load orders (bug 27744) 2021-04-21 11:50:43 +02:00
td_init.c nptl_db: Support different libpthread/ld.so load orders (bug 27744) 2021-04-21 11:50:43 +02:00
td_log.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_symbol_list.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_ta_clear_event.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_ta_delete.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_ta_enable_stats.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_ta_event_addr.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_ta_event_getmsg.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_ta_get_nthreads.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_ta_get_ph.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_ta_get_stats.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_ta_map_id2thr.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_ta_map_lwp2thr.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_ta_new.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_ta_reset_stats.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_ta_set_event.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_ta_setconcurrency.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_ta_thr_iter.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_ta_tsd_iter.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_thr_clear_event.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_thr_dbresume.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_thr_dbsuspend.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_thr_event_enable.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_thr_event_getmsg.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_thr_get_info.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_thr_getfpregs.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_thr_getgregs.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_thr_getxregs.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_thr_getxregsize.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_thr_set_event.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_thr_setfpregs.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_thr_setgregs.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_thr_setprio.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_thr_setsigpending.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_thr_setxregs.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_thr_sigsetmask.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_thr_tls_get_addr.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_thr_tlsbase.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_thr_tsd.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
td_thr_validate.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
thread_dbP.h nptl_db: Support different libpthread/ld.so load orders (bug 27744) 2021-04-21 11:50:43 +02:00
Versions