Some get_last_target_status tweaks
[deliverable/binutils-gdb.git] / gdb / infcmd.c
index aea977f492cd68d18f46d1599de35134a48ba4df..99823a8f2589169bc72760123ad01b9e39389bd8 100644 (file)
@@ -851,9 +851,8 @@ continue_command (const char *args, int from_tty)
       else
        {
          ptid_t last_ptid;
-         struct target_waitstatus ws;
 
-         get_last_target_status (&last_ptid, &ws);
+         get_last_target_status (&last_ptid, nullptr);
          tp = find_thread_ptid (last_ptid);
        }
       if (tp != NULL)
@@ -1993,11 +1992,7 @@ info_program_command (const char *args, int from_tty)
   if (non_stop)
     ptid = inferior_ptid;
   else
-    {
-      struct target_waitstatus ws;
-
-      get_last_target_status (&ptid, &ws);
-    }
+    get_last_target_status (&ptid, nullptr);
 
   if (ptid == null_ptid || ptid == minus_one_ptid)
     error (_("No selected thread."));
This page took 0.025091 seconds and 4 git commands to generate.