This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
- From: Michael Snyder <msnyder at vmware dot com>
- To: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>, Hui Zhu <teawater at gmail dot com>
- Date: Fri, 04 Mar 2011 17:14:25 -0800
- Subject: [commit] linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
checked in.
2011-03-04 Michael Snyder <msnyder@vmware.com>
* linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
Index: linux-fork.c
===================================================================
RCS file: /cvs/src/src/gdb/linux-fork.c,v
retrieving revision 1.36
diff -u -p -r1.36 linux-fork.c
--- linux-fork.c 9 Jan 2011 03:08:57 -0000 1.36
+++ linux-fork.c 5 Mar 2011 01:07:31 -0000
@@ -443,7 +443,7 @@ inferior_call_waitpid (ptid_t pptid, int
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);