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

@ -1959,7 +1959,7 @@ gdbpy_add_history (PyObject *self, PyObject *args)
try
{
int idx = record_latest_value (value);
int idx = value->record_latest ();
return gdb_py_object_from_longest (idx).release ();
}
catch (const gdb_exception &except)