struct value *val = value::allocate_lazy (type);
val->allocate_contents (check_size);
- val->m_lazy = 0;
+ val->m_lazy = false;
return val;
}
struct value *retval = value::allocate_lazy (type);
retval->mark_bytes_optimized_out (0, type->length ());
- retval->set_lazy (0);
+ retval->set_lazy (false);
return retval;
}
/* Copy the contents and the unavailability/optimized-out
meta-data from NEW_VAL to VAL. */
- set_lazy (0);
+ set_lazy (false);
new_val->contents_copy (this, embedded_offset (),
new_val->embedded_offset (),
type_length_units (type));
else
internal_error (_("Unexpected lazy value type."));
- set_lazy (0);
+ set_lazy (false);
}
/* Implementation of the convenience function $_isvoid. */
/* Values can only be created via "static constructors". */
explicit value (struct type *type_)
: m_modifiable (true),
- m_lazy (1),
+ m_lazy (true),
m_initialized (1),
m_stack (0),
m_is_zero (false),
void set_embedded_offset (LONGEST val)
{ m_embedded_offset = val; }
- /* If zero, contents of this value are in the contents field. If
- nonzero, contents are in inferior. If the lval field is lval_memory,
+ /* If false, contents of this value are in the contents field. If
+ true, contents are in inferior. If the lval field is lval_memory,
the contents are in inferior memory at location.address plus offset.
The lval field may also be lval_register.
element. If you ever change the way lazy flag is set and reset, be
sure to consider this use as well! */
- int lazy () const
+ bool lazy () const
{ return m_lazy; }
- void set_lazy (int val)
+ void set_lazy (bool val)
{ m_lazy = val; }
/* If a value represents a C++ object, then the `type' field gives the
/* Is it modifiable? Only relevant if lval != not_lval. */
bool m_modifiable : 1;
- /* If zero, contents of this value are in the contents field. If
- nonzero, contents are in inferior. If the lval field is lval_memory,
+ /* If false, contents of this value are in the contents field. If
+ true, contents are in inferior. If the lval field is lval_memory,
the contents are in inferior memory at location.address plus offset.
The lval field may also be lval_register.
or array when the user wants to watch a single struct member or
array element. If you ever change the way lazy flag is set and
reset, be sure to consider this use as well! */
- unsigned int m_lazy : 1;
+ bool m_lazy : 1;
/* If value is a variable, is it initialized or not. */
unsigned int m_initialized : 1;