From: Michael Snyder Date: Sat, 5 Mar 2011 01:12:05 +0000 (+0000) Subject: 2011-03-04 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=da3ecdc6646f015c02e4414ff54251382b252663;p=binutils-gdb.git 2011-03-04 Michael Snyder * linux-fork.c (inferior_call_waitptid): Fix copy/paste error. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 949fcd2a693..8d6a878584c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ 2011-03-04 Michael Snyder + * linux-fork.c (inferior_call_waitptid): Fix copy/paste error. + * symfile.c (simple_overlay_update): Check for null return value from lookup_minimal_symbol. diff --git a/gdb/linux-fork.c b/gdb/linux-fork.c index b5816269026..a60975c36ac 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);