Turn value_lazy and set_value_lazy functions into methods
This changes the value_lazy and set_value_lazy functions to be methods of value. Much of this patch was written by script. Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
parent
391f86284f
commit
3ee3b2700d
22 changed files with 87 additions and 96 deletions
|
@ -578,7 +578,7 @@ gdbpy_apply_val_pretty_printer (const struct extension_language_defn *extlang,
|
|||
struct gdbarch *gdbarch = type->arch ();
|
||||
enum gdbpy_string_repr_result print_result;
|
||||
|
||||
if (value_lazy (value))
|
||||
if (value->lazy ())
|
||||
value_fetch_lazy (value);
|
||||
|
||||
/* No pretty-printer support for unavailable values. */
|
||||
|
|
|
@ -1219,7 +1219,7 @@ valpy_get_is_lazy (PyObject *self, void *closure)
|
|||
|
||||
try
|
||||
{
|
||||
opt = value_lazy (value);
|
||||
opt = value->lazy ();
|
||||
}
|
||||
catch (const gdb_exception &except)
|
||||
{
|
||||
|
@ -1240,7 +1240,7 @@ valpy_fetch_lazy (PyObject *self, PyObject *args)
|
|||
|
||||
try
|
||||
{
|
||||
if (value_lazy (value))
|
||||
if (value->lazy ())
|
||||
value_fetch_lazy (value);
|
||||
}
|
||||
catch (const gdb_exception &except)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue