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>
This commit is contained in:
Tom Tromey
2023-02-12 08:04:07 -07:00
parent e6cf1e1b42
commit 0d0f488e1d
7 changed files with 21 additions and 24 deletions

View File

@@ -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;