(thread_db_wait): Don't bother continuing if the wait result indicates the
authorNick Roberts <nickrob@snap.net.nz>
Sun, 15 Oct 2006 19:38:45 +0000 (19:38 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Sun, 15 Oct 2006 19:38:45 +0000 (19:38 +0000)
program terminated with a signal (from gdb-6.3-ia64-sigill-20051115.patch, a
patch for Fedora Core 5).

gdb/linux-thread-db.c

index 517dc44..c861208 100644 (file)
@@ -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)