* server.c (start_inferior): Set last_ptid in --wrapper case.
authorDoug Evans <dje@google.com>
Mon, 9 Jan 2012 17:17:50 +0000 (17:17 +0000)
committerDoug Evans <dje@google.com>
Mon, 9 Jan 2012 17:17:50 +0000 (17:17 +0000)
gdb/gdbserver/ChangeLog
gdb/gdbserver/server.c

index 73d1b94498b240e82d2306a4dd36f8a9f4325261..4bbba373e22566d80732d70da2ea9950dbb09c5d 100644 (file)
@@ -1,3 +1,7 @@
+2012-01-09  Doug Evans  <dje@google.com>
+
+       * server.c (start_inferior): Set last_ptid in --wrapper case.
+
 2012-01-06  Yao Qi  <yao@codesourcery.com>
 
        * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
index f8db14a67301d0cb1a265fa73dda304be02e4821..a3bc6c9c2e380cfb4112195869631c4014adf2ef 100644 (file)
@@ -284,7 +284,7 @@ start_inferior (char **argv)
       resume_info.kind = resume_continue;
       resume_info.sig = 0;
 
-      mywait (pid_to_ptid (signal_pid), &last_status, 0, 0);
+      last_ptid = mywait (pid_to_ptid (signal_pid), &last_status, 0, 0);
 
       if (last_status.kind != TARGET_WAITKIND_STOPPED)
        return signal_pid;
@@ -293,7 +293,7 @@ start_inferior (char **argv)
        {
          (*the_target->resume) (&resume_info, 1);
 
-         mywait (pid_to_ptid (signal_pid), &last_status, 0, 0);
+         last_ptid = mywait (pid_to_ptid (signal_pid), &last_status, 0, 0);
          if (last_status.kind != TARGET_WAITKIND_STOPPED)
            return signal_pid;