aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-fork.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2011-03-05 01:12:05 +0000
committerMichael Snyder <msnyder@vmware.com>2011-03-05 01:12:05 +0000
commitda3ecdc6646f015c02e4414ff54251382b252663 (patch)
tree8b3f5f744c7cb8f93e38b062d11c904d46f7ae13 /gdb/linux-fork.c
parent9cc8966527dbd97792d9ff46398f7a15853ad6fc (diff)
downloadgdb-da3ecdc6646f015c02e4414ff54251382b252663.zip
gdb-da3ecdc6646f015c02e4414ff54251382b252663.tar.gz
gdb-da3ecdc6646f015c02e4414ff54251382b252663.tar.bz2
2011-03-04 Michael Snyder <msnyder@vmware.com>
* linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
Diffstat (limited to 'gdb/linux-fork.c')
-rw-r--r--gdb/linux-fork.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/linux-fork.c b/gdb/linux-fork.c
index b581626..a60975c 100644
--- a/gdb/linux-fork.c
+++ b/gdb/linux-fork.c
@@ -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);