mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-10 09:59:06 +08:00
Turn value_fetch_lazy into a method
This changes value_fetch_lazy to be a method of value. A few helper functions are converted as well, to avoid problems in later patches when the data members are all made private. Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
@ -579,7 +579,7 @@ gdbpy_apply_val_pretty_printer (const struct extension_language_defn *extlang,
|
||||
enum gdbpy_string_repr_result print_result;
|
||||
|
||||
if (value->lazy ())
|
||||
value_fetch_lazy (value);
|
||||
value->fetch_lazy ();
|
||||
|
||||
/* No pretty-printer support for unavailable values. */
|
||||
if (!value_bytes_available (value, 0, type->length ()))
|
||||
|
@ -1241,7 +1241,7 @@ valpy_fetch_lazy (PyObject *self, PyObject *args)
|
||||
try
|
||||
{
|
||||
if (value->lazy ())
|
||||
value_fetch_lazy (value);
|
||||
value->fetch_lazy ();
|
||||
}
|
||||
catch (const gdb_exception &except)
|
||||
{
|
||||
|
Reference in New Issue
Block a user