gdb: Fix incorrect variable name in scoped_switch_fork_info
authorAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 10 Jan 2019 17:00:48 +0000 (17:00 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 10 Jan 2019 17:00:48 +0000 (17:00 +0000)
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.

gdb/ChangeLog
gdb/linux-fork.c

index f449d6836ed96fb14bbd5ba589a1a6eba2cf7915..dcd901443568ecdf50a4b16abdf290fc26955905 100644 (file)
@@ -1,3 +1,8 @@
+2019-01-10  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * linux-fork.c (scoped_switch_fork_info)
+       <~scoped_switch_fork_info>: Fix incorrect variable name.
+
 2019-01-10  Andrew Burgess  <andrew.burgess@embecosm.com>
 
        * linux-fork.c (scoped_switch_fork_info)
index 9bbf9c4a141074ed032281081df4173a3431bac7..96663a560e63f3c33577278f08213efc7fd61e8e 100644 (file)
@@ -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
       }