From 2cf5eeb00151f72e5aa07f0289c2889752eb07d9 Mon Sep 17 00:00:00 2001 From: davidxu Date: Tue, 12 Apr 2005 03:00:28 +0000 Subject: Add debugger event reporting support, current only TD_CREATE and TD_DEATH events are reported. --- lib/libthr/thread/thr_exit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/libthr/thread/thr_exit.c') diff --git a/lib/libthr/thread/thr_exit.c b/lib/libthr/thread/thr_exit.c index 554646b..4f4eff6 100644 --- a/lib/libthr/thread/thr_exit.c +++ b/lib/libthr/thread/thr_exit.c @@ -130,7 +130,9 @@ _pthread_exit(void *status) THREAD_LIST_UNLOCK(curthread); if (curthread->joiner) _thr_umtx_wake(&curthread->state, INT_MAX); - thr_exit(&curthread->terminated); + if (SHOULD_REPORT_EVENT(curthread, TD_DEATH)) + _thr_report_death(curthread); + thr_exit(&curthread->tid); PANIC("thr_exit() returned"); /* Never reach! */ } -- cgit v1.1