mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 07:53:51 +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:
10
gdb/stack.c
10
gdb/stack.c
@ -581,9 +581,9 @@ read_frame_arg (const frame_print_options &fp_opts,
|
||||
struct type *type = val->type ();
|
||||
|
||||
if (val->lazy ())
|
||||
value_fetch_lazy (val);
|
||||
val->fetch_lazy ();
|
||||
if (entryval->lazy ())
|
||||
value_fetch_lazy (entryval);
|
||||
entryval->fetch_lazy ();
|
||||
|
||||
if (value_contents_eq (val, 0, entryval, 0, type->length ()))
|
||||
{
|
||||
@ -600,12 +600,12 @@ read_frame_arg (const frame_print_options &fp_opts,
|
||||
|
||||
val_deref = coerce_ref (val);
|
||||
if (val_deref->lazy ())
|
||||
value_fetch_lazy (val_deref);
|
||||
val_deref->fetch_lazy ();
|
||||
type_deref = val_deref->type ();
|
||||
|
||||
entryval_deref = coerce_ref (entryval);
|
||||
if (entryval_deref->lazy ())
|
||||
value_fetch_lazy (entryval_deref);
|
||||
entryval_deref->fetch_lazy ();
|
||||
|
||||
/* If the reference addresses match but dereferenced
|
||||
content does not match print them. */
|
||||
@ -2750,7 +2750,7 @@ return_command (const char *retval_exp, int from_tty)
|
||||
/* Make sure the value is fully evaluated. It may live in the
|
||||
stack frame we're about to pop. */
|
||||
if (return_value->lazy ())
|
||||
value_fetch_lazy (return_value);
|
||||
return_value->fetch_lazy ();
|
||||
|
||||
if (thisfun != NULL)
|
||||
function = read_var_value (thisfun, NULL, thisframe);
|
||||
|
Reference in New Issue
Block a user