diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2004-06-04 21:28:15 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2004-06-04 21:28:15 +0000 |
commit | b9b5d7ea4de09f50277394ab1063cbb28d9cdfc9 (patch) | |
tree | 44a312000bb8638190c5ceba4ea7d0646274ddd5 /gdb/infrun.c | |
parent | d4a00f218b16132f13e4364c1b6b34934d31587a (diff) | |
download | gdb-b9b5d7ea4de09f50277394ab1063cbb28d9cdfc9.zip gdb-b9b5d7ea4de09f50277394ab1063cbb28d9cdfc9.tar.gz gdb-b9b5d7ea4de09f50277394ab1063cbb28d9cdfc9.tar.bz2 |
2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
* infrun.c (handle_inferior_event): Don't treat an invalid ptid
as a new thread event.
* thread_db.c (thread_get_info_callback): If the thread is a
zombie, return TD_THR_ZOMBIE.
* (thread_from_lwp): If thread_get_info_callback returns
TD_THR_ZOMBIE, check if the thread is still on the thread list
and return a -1 ptid if not found.
(thread_db_wait): If thread_from_lwp returns a -1 ptid, then
change the status to TARGET_WAITKIND_SPURIOUS.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index 3834cd8..feb8cba 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -1332,6 +1332,7 @@ handle_inferior_event (struct execution_control_state *ecs) /* If it's a new process, add it to the thread database */ ecs->new_thread_event = (!ptid_equal (ecs->ptid, inferior_ptid) + && !ptid_equal (ecs->ptid, minus_one_ptid) && !in_thread_list (ecs->ptid)); if (ecs->ws.kind != TARGET_WAITKIND_EXITED |