init.c (__nptl_initial_report_events): New variable.
commit62175247d977c087e62f067d4db1445f88b61e7b
authorRoland McGrath <roland@gnu.org>
Tue, 28 Apr 2015 03:07:24 +0000 (28 11:07 +0800)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 6 May 2015 20:19:31 +0000 (6 22:19 +0200)
treeef4dec147a4a367b54fdb18024ff5535f4a2efe3
parent5b691e38f45e3fed19aea98775f79ab9cc00783f
init.c (__nptl_initial_report_events): New variable.

(__pthread_initialize_minimal_internal): Initialize pd->report_events
to that.

This patch helps NPTL report TD_CREATE event, so that GDB could catch the
event and update its thread_list.
Link: http://lists.uclibc.org/pipermail/uclibc/2015-April/048921.html
[shengyong:
 - original patch from glibc: commit 7d9d8bd18906fdd17364f372b160d7ab896ce909
 - context adjust
 - update nptl_db/ChangeLog]

Signed-off-by: Roland McGrath <roland@gnu.org>
Signed-off-by: Sheng Yong <shengyong1@huawei.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 files changed:
libpthread/nptl_db/ChangeLog
libpthread/nptl_db/db_info.c
libpthread/nptl_db/structs.def
libpthread/nptl_db/td_ta_map_lwp2thr.c
libpthread/nptl_db/td_ta_thr_iter.c
libpthread/nptl_db/td_thr_event_enable.c
libpthread/nptl_db/td_thr_get_info.c
libpthread/nptl_db/td_thr_getfpregs.c
libpthread/nptl_db/td_thr_getgregs.c
libpthread/nptl_db/td_thr_setfpregs.c
libpthread/nptl_db/td_thr_setgregs.c
libpthread/nptl_db/td_thr_tlsbase.c
libpthread/nptl_db/td_thr_validate.c
libpthread/nptl_db/thread_dbP.h