2011-03-04 Michael Snyder <msnyder@vmware.com>
authorMichael Snyder <msnyder@vmware.com>
Sat, 5 Mar 2011 01:12:05 +0000 (01:12 +0000)
committerMichael Snyder <msnyder@vmware.com>
Sat, 5 Mar 2011 01:12:05 +0000 (01:12 +0000)
* linux-fork.c (inferior_call_waitptid): Fix copy/paste error.

gdb/ChangeLog
gdb/linux-fork.c

index 949fcd2a6939dde5da80d96dfa41e81e166f8600..8d6a878584c7e1c3a02e8045dccbfdfa0be2ecd9 100644 (file)
@@ -1,5 +1,7 @@
 2011-03-04  Michael Snyder  <msnyder@vmware.com>
 
+       * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
+
        * symfile.c (simple_overlay_update): Check for null return value
        from lookup_minimal_symbol.
 
index b5816269026fea33e78eda7d4a72c2d4843ced6d..a60975c36acd15eb470af667984691722195715c 100644 (file)
@@ -443,7 +443,7 @@ inferior_call_waitpid (ptid_t pptid, int pid)
       oldfp = find_fork_ptid (inferior_ptid);
       gdb_assert (oldfp != NULL);
       newfp = find_fork_ptid (pptid);
-      gdb_assert (oldfp != NULL);
+      gdb_assert (newfp != NULL);
       fork_save_infrun_state (oldfp, 1);
       remove_breakpoints ();
       fork_load_infrun_state (newfp);