From 9bada6984501f160314dc50b791963a54aeecfee Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Wed, 11 Aug 2010 15:58:49 +0000 Subject: [PATCH] 2010-08-11 Thomas Schwinge * linux-low.c (linux_wait_1): Correctly return the ptid of the child after its termination. --- gdb/gdbserver/ChangeLog | 5 +++++ gdb/gdbserver/linux-low.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 7c182cbd154..90bb28088ab 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2010-08-11 Thomas Schwinge + + * linux-low.c (linux_wait_1): Correctly return the ptid of the child + after its termination. + 2010-07-21 Ozkan Sezer * server.c (handle_query): strcpy() the returned string from paddress() diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 64007b070aa..241e0ab8292 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -2071,7 +2071,7 @@ retry: } - return pid_to_ptid (pid); + return ptid_of (event_child); } } else -- 2.47.2