(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).
This commit is contained in:
Nick Roberts
2006-10-15 19:38:45 +00:00
parent b255021abc
commit 1111f4aa91

View 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)