2001-07-03 Michael Snyder <msnyder@redhat.com>
* thread_db (find_new_threads_callback, thread_db_thread_alive, attach_thread): Update comments.
This commit is contained in:
parent
00783ba94c
commit
5d12882f43
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2001-07-03 Michael Snyder <msnyder@redhat.com>
|
||||
|
||||
* thread_db (find_new_threads_callback, thread_db_thread_alive,
|
||||
attach_thread): Update comments.
|
||||
|
||||
2001-06-29 Ken Whaley <ken@believe.com>
|
||||
|
||||
* thread-db.c (attach_thread): Check for TD_THR_ZOMBIE in addition
|
||||
|
|
|
@ -575,7 +575,7 @@ attach_thread (ptid_t ptid, const td_thrhandle_t *th_p,
|
|||
|
||||
if (ti_p->ti_state == TD_THR_UNKNOWN ||
|
||||
ti_p->ti_state == TD_THR_ZOMBIE)
|
||||
return;/* A zombie thread that's been joined -- do not attach. */
|
||||
return;/* A zombie thread -- do not attach. */
|
||||
|
||||
/* Under Linux, we have to attach to each and every thread. */
|
||||
#ifdef ATTACH_LWP
|
||||
|
@ -918,7 +918,7 @@ thread_db_thread_alive (ptid_t ptid)
|
|||
|
||||
if (ti.ti_state == TD_THR_UNKNOWN ||
|
||||
ti.ti_state == TD_THR_ZOMBIE)
|
||||
return 0; /* A zombie thread that's been joined. */
|
||||
return 0; /* A zombie thread. */
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
@ -943,7 +943,7 @@ find_new_threads_callback (const td_thrhandle_t *th_p, void *data)
|
|||
if (ti.ti_state == TD_THR_UNKNOWN ||
|
||||
ti.ti_state == TD_THR_ZOMBIE)
|
||||
|
||||
return 0; /* A zombie that's been reaped -- ignore. */
|
||||
return 0; /* A zombie -- ignore. */
|
||||
|
||||
ptid = BUILD_THREAD (ti.ti_tid, GET_PID (inferior_ptid));
|
||||
|
||||
|
|
Loading…
Reference in a new issue