diff options
author | Tom Tromey <tom@tromey.com> | 2023-02-12 08:04:07 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-13 15:22:17 -0700 |
commit | 0d0f488e1dd2761d2681f13b318f6e3f5eb6a5e3 (patch) | |
tree | 830fc81825bf5cde8e3e0f3e1f803b152dd440ba /gdb/infcmd.c | |
parent | e6cf1e1b42c1e44610cc8b2997f883275f0b244d (diff) | |
download | gdb-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/infcmd.c')
-rw-r--r-- | gdb/infcmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 3943a56..a851fe1 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -1657,7 +1657,7 @@ finish_command_fsm::should_stop (struct thread_info *tp) rv->value = get_return_value (function, func); if (rv->value != nullptr) - rv->value_history_index = record_latest_value (rv->value); + rv->value_history_index = rv->value->record_latest (); } } else if (tp->control.stop_step) |