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:
parent
e6cf1e1b42
commit
0d0f488e1d
7 changed files with 21 additions and 24 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue