From 06db92f05489431368ef8d1ece01ea588235741d Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Mon, 9 Jan 2012 17:17:50 +0000 Subject: [PATCH] * server.c (start_inferior): Set last_ptid in --wrapper case. --- gdb/gdbserver/ChangeLog | 4 ++++ gdb/gdbserver/server.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 73d1b94498b..4bbba373e22 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2012-01-09 Doug Evans + + * server.c (start_inferior): Set last_ptid in --wrapper case. + 2012-01-06 Yao Qi * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index f8db14a6730..a3bc6c9c2e3 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; -- 2.30.2