aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-fork.c
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2019-01-10 17:00:48 +0000
committerAndrew Burgess <andrew.burgess@embecosm.com>2019-01-10 17:00:48 +0000
commitda584958006fd0a3f3dccd25a0a54fa79a0976bc (patch)
treef5e27c730fbec3e6d2caa178b66300e3d5bc979b /gdb/linux-fork.c
parent1ef8573cc77c91feeef3edab74d383d20809eb33 (diff)
downloadgdb-da584958006fd0a3f3dccd25a0a54fa79a0976bc.zip
gdb-da584958006fd0a3f3dccd25a0a54fa79a0976bc.tar.gz
gdb-da584958006fd0a3f3dccd25a0a54fa79a0976bc.tar.bz2
gdb: Fix incorrect variable name in scoped_switch_fork_info
The previous commit: commit 1ef8573cc77c91feeef3edab74d383d20809eb33 Date: Wed Jan 9 14:02:39 2019 +0000 gdb: Improve scoped_switch_fork_info class contained a bug, an incorrect variable name was used. Fixed in this commit. gdb/ChangeLog: * linux-fork.c (scoped_switch_fork_info) <~scoped_switch_fork_info>: Fix incorrect variable name.
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 9bbf9c4..96663a5 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
}