(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 517dc44d0781e42d0743eb05d393e6496132ea67..c861208575483e0ecf33338ade43dd0f5ec3d3ec 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)