aboutsummaryrefslogtreecommitdiff
path: root/gdb/arc-tdep.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-02-12 08:04:07 -0700
committerTom Tromey <tom@tromey.com>2023-02-13 15:22:17 -0700
commit0d0f488e1dd2761d2681f13b318f6e3f5eb6a5e3 (patch)
tree830fc81825bf5cde8e3e0f3e1f803b152dd440ba /gdb/arc-tdep.c
parente6cf1e1b42c1e44610cc8b2997f883275f0b244d (diff)
downloadgdb-0d0f488e1dd2761d2681f13b318f6e3f5eb6a5e3.zip
gdb-0d0f488e1dd2761d2681f13b318f6e3f5eb6a5e3.tar.gz
gdb-0d0f488e1dd2761d2681f13b318f6e3f5eb6a5e3.tar.bz2
Turn record_latest_value into a method
record_latest_value now access some internals of struct value, so turn it into a method. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/arc-tdep.c')
-rw-r--r--gdb/arc-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/arc-tdep.c b/gdb/arc-tdep.c
index bbdcb8d..bbf4846 100644
--- a/gdb/arc-tdep.c
+++ b/gdb/arc-tdep.c
@@ -2437,7 +2437,7 @@ dump_arc_instruction_command (const char *args, int from_tty)
val = evaluate_expression (parse_expression (args).get ());
else
val = access_value_history (0);
- record_latest_value (val);
+ val->record_latest ();
CORE_ADDR address = value_as_address (val);
struct arc_instruction insn;