From 3e4c12352587411b09071bd92002d481cebb8f1d Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Wed, 11 Aug 2010 15:53:04 +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 9b3a2fc727..01fe3f82f4 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-08-09 Pedro Alves * linux-low.c (gdb_wants_lwp_stopped): Delete. diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index dbad8c6ae0..a162385dd4 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -2045,7 +2045,7 @@ retry: } - return pid_to_ptid (pid); + return ptid_of (event_child); } } else