aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-thread-db.c
diff options
context:
space:
mode:
authorNick Roberts <nickrob@snap.net.nz>2006-10-15 19:38:45 +0000
committerNick Roberts <nickrob@snap.net.nz>2006-10-15 19:38:45 +0000
commit1111f4aa91cb8bc973e282c14e6defe1a46f8434 (patch)
tree210c10db58aac336b12ea0af3d845e398f59bef5 /gdb/linux-thread-db.c
parentb255021abcbf9585440a5aac216ec9a90910cd14 (diff)
downloadgdb-1111f4aa91cb8bc973e282c14e6defe1a46f8434.zip
gdb-1111f4aa91cb8bc973e282c14e6defe1a46f8434.tar.gz
gdb-1111f4aa91cb8bc973e282c14e6defe1a46f8434.tar.bz2
(thread_db_wait): Don't bother continuing if the wait result indicates the
program terminated with a signal (from gdb-6.3-ia64-sigill-20051115.patch, a patch for Fedora Core 5).
Diffstat (limited to 'gdb/linux-thread-db.c')
-rw-r--r--gdb/linux-thread-db.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c
index 517dc44..c861208 100644
--- a/gdb/linux-thread-db.c
+++ b/gdb/linux-thread-db.c
@@ -872,7 +872,8 @@ thread_db_wait (ptid_t ptid, struct target_waitstatus *ourstatus)
post-processing and bail out early. */
return ptid;
- if (ourstatus->kind == TARGET_WAITKIND_EXITED)
+ if (ourstatus->kind == TARGET_WAITKIND_EXITED
+ || ourstatus->kind == TARGET_WAITKIND_SIGNALLED)
return pid_to_ptid (-1);
if (ourstatus->kind == TARGET_WAITKIND_EXECD)