From 1111f4aa91cb8bc973e282c14e6defe1a46f8434 Mon Sep 17 00:00:00 2001 From: Nick Roberts Date: Sun, 15 Oct 2006 19:38:45 +0000 Subject: [PATCH] (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). --- gdb/linux-thread-db.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c index 517dc44d07..c861208575 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) -- 2.34.1