2011-03-04 Michael Snyder <msnyder@vmware.com>

* linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
This commit is contained in:
Michael Snyder 2011-03-05 01:12:05 +00:00
parent 9cc8966527
commit da3ecdc664
2 changed files with 3 additions and 1 deletions

View 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.

View 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);