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 9b3a2fc727011802b8da7b428a2b4e80ab5e895b..01fe3f82f4a06ee3c524c40e82317998eaa5db0f 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 dbad8c6ae0ba28ce7ac772a1e0f5b415db60b05a..a162385dd4dc44a1e465e5db9e0048e06f2c6169 100644 (file)
@@ -2045,7 +2045,7 @@ retry:
 
            }
 
-         return pid_to_ptid (pid);
+         return ptid_of (event_child);
        }
     }
   else