diff options
author | Eric Andersen <andersen@codepoet.org> | 2005-01-29 14:20:10 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2005-01-29 14:20:10 +0000 |
commit | badf6dd685a37f85be05720797cf675c4d58846c (patch) | |
tree | 72cdf8cfb4f0f30841b7291759bd298b69693db3 /libpthread/linuxthreads/join.c | |
parent | 0e2bf1ef11e27dea207747a0480823a3e4a06217 (diff) |
Hi Erik and Manuel
Long time no see :)
It appears uClibc pthreads native debugging is broken w.r.t thread exit handling in
uClibc(at least on PPC). When debugging ex7, gdb(6.2.1) bails out as
soon as a thread exits. I found a comment in gdb that TD_DEATH handling was broken for
glibc 2.3.1, so I figured that maybe it was broken in uClibc also.
I added a #if 0 #endif in pthread_exit( see patch below) and then
gdb behaved again.
While looking into this I found a few differences( included in the patch)
between glibc and uClibc. Don't know if these makes a difference, but I leave that to
you to decide.
Jocke
Diffstat (limited to 'libpthread/linuxthreads/join.c')
-rw-r--r-- | libpthread/linuxthreads/join.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libpthread/linuxthreads/join.c b/libpthread/linuxthreads/join.c index cc2dc4ddc..bce737dea 100644 --- a/libpthread/linuxthreads/join.c +++ b/libpthread/linuxthreads/join.c @@ -52,10 +52,11 @@ PDEBUG("self=%p, pid=%d\n", self, self->p_pid); uint32_t mask = __td_eventmask (TD_DEATH); if ((mask & (__pthread_threads_events.event_bits[idx] - | THREAD_GETMEM(self, + | THREAD_GETMEM_NC(self, p_eventbuf.eventmask).event_bits[idx])) != 0) { +#if 0 /* Appears like DEATH event reporting is broken */ /* Yep, we have to signal the death. */ THREAD_SETMEM(self, p_eventbuf.eventnum, TD_DEATH); THREAD_SETMEM(self, p_eventbuf.eventdata, self); @@ -63,6 +64,7 @@ PDEBUG("self=%p, pid=%d\n", self, self->p_pid); /* Now call the function to signal the event. */ __linuxthreads_death_event(); +#endif } } /* See if someone is joining on us */ |