From: nickrob Date: Sun, 15 Oct 2006 19:38:45 +0000 (+0000) Subject: (thread_db_wait): Don't bother continuing if the wait result indicates the X-Git-Tag: drop_9x_support_start~1472 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=1566815b842817f86efe8c4beb96f1c65a143e8c;p=pf3gnuchains%2Fpf3gnuchains4x.git (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). --- 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)