From da3ecdc6646f015c02e4414ff54251382b252663 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Sat, 5 Mar 2011 01:12:05 +0000 Subject: [PATCH] 2011-03-04 Michael Snyder * linux-fork.c (inferior_call_waitptid): Fix copy/paste error. --- gdb/ChangeLog | 2 ++ gdb/linux-fork.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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); -- 2.30.2