aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2012-01-09 17:17:50 +0000
committerDoug Evans <dje@google.com>2012-01-09 17:17:50 +0000
commit06db92f05489431368ef8d1ece01ea588235741d (patch)
treeacf3678fc5888e87ce0ef49a3543a91739f81a46
parent2e6af8c0457c1d449c64e16741ae88b87a490ce7 (diff)
downloadgdb-06db92f05489431368ef8d1ece01ea588235741d.zip
gdb-06db92f05489431368ef8d1ece01ea588235741d.tar.gz
gdb-06db92f05489431368ef8d1ece01ea588235741d.tar.bz2
* server.c (start_inferior): Set last_ptid in --wrapper case.
-rw-r--r--gdb/gdbserver/ChangeLog4
-rw-r--r--gdb/gdbserver/server.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 73d1b94..4bbba37 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -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
diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c
index f8db14a..a3bc6c9 100644
--- a/gdb/gdbserver/server.c
+++ b/gdb/gdbserver/server.c
@@ -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;