2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
authorThomas Schwinge <tschwinge@gnu.org>
Wed, 11 Aug 2010 15:53:04 +0000 (15:53 +0000)
committerThomas Schwinge <tschwinge@gnu.org>
Wed, 11 Aug 2010 15:53:04 +0000 (15:53 +0000)
* linux-low.c (linux_wait_1): Correctly return the ptid of the child
after its termination.

gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-low.c

index 9b3a2fc..01fe3f8 100644 (file)
@@ -1,3 +1,8 @@
+2010-08-11  Thomas Schwinge  <thomas@codesourcery.com>
+
+       * linux-low.c (linux_wait_1): Correctly return the ptid of the child
+       after its termination.
+
 2010-08-09  Pedro Alves  <pedro@codesourcery.com>
 
        * linux-low.c (gdb_wants_lwp_stopped): Delete.
index dbad8c6..a162385 100644 (file)
@@ -2045,7 +2045,7 @@ retry:
 
            }
 
-         return pid_to_ptid (pid);
+         return ptid_of (event_child);
        }
     }
   else