* infrun.c (handle_inferior_event): On a TARGET_WAITKIND_EXITED or
[deliverable/binutils-gdb.git] / gdb / linux-thread-db.c
index 5f98e99b6710a6d62e61f23054c9b25dc90e36ea..cf0dd6a8ff5b5814e5a674ea253a51e6a064bde2 100644 (file)
@@ -888,8 +888,8 @@ thread_db_wait (ptid_t ptid, struct target_waitstatus *ourstatus)
     return ptid;
 
   if (ourstatus->kind == TARGET_WAITKIND_EXITED
-    || ourstatus->kind == TARGET_WAITKIND_SIGNALLED)
-    return pid_to_ptid (-1);
+      || ourstatus->kind == TARGET_WAITKIND_SIGNALLED)
+    return ptid;
 
   if (ourstatus->kind == TARGET_WAITKIND_EXECD)
     {
This page took 0.023541 seconds and 4 git commands to generate.