diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f449d6836ed..dcd90144356 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2019-01-10 Andrew Burgess + + * linux-fork.c (scoped_switch_fork_info) + <~scoped_switch_fork_info>: Fix incorrect variable name. + 2019-01-10 Andrew Burgess * linux-fork.c (scoped_switch_fork_info) diff --git a/gdb/linux-fork.c b/gdb/linux-fork.c index 9bbf9c4a141..96663a560e6 100644 --- a/gdb/linux-fork.c +++ b/gdb/linux-fork.c @@ -481,7 +481,7 @@ public: CATCH (ex, RETURN_MASK_ALL) { warning (_("Couldn't restore checkpoint state in %s: %s"), - target_pid_to_str (fp->ptid), ex.message); + target_pid_to_str (m_oldfp->ptid), ex.message); } END_CATCH }