Fix internal error and improve 'set debug infrun 1'/target wait kind trace
[deliverable/binutils-gdb.git] / gdb / gnu-nat.c
index c1fafed156efc81f0971e8e8c6b6fa4cab200aef..654a652717008d1fd210d652f17516d7313b9b2f 100644 (file)
@@ -1647,15 +1647,9 @@ rewait:
       inf_update_suspends (inf);
     }
 
-  inf_debug (inf, "returning ptid = %s, status = %s (%d)",
+  inf_debug (inf, "returning ptid = %s, %s",
             target_pid_to_str (ptid).c_str (),
-            status->kind == TARGET_WAITKIND_EXITED ? "EXITED"
-            : status->kind == TARGET_WAITKIND_STOPPED ? "STOPPED"
-            : status->kind == TARGET_WAITKIND_SIGNALLED ? "SIGNALLED"
-            : status->kind == TARGET_WAITKIND_LOADED ? "LOADED"
-            : status->kind == TARGET_WAITKIND_SPURIOUS ? "SPURIOUS"
-            : "?",
-            status->value.integer);
+            target_waitstatus_to_string (&status).c_str ());
 
   return ptid;
 }
This page took 0.056928 seconds and 4 git commands to generate.