}
}
- if (!value_initialized (val))
+ if (!val->initialized ())
gdb_printf (stream, " [uninitialized] ");
if (options->objectprint && (type->code () == TYPE_CODE_STRUCT))
!= RETURN_VALUE_REGISTER_CONVENTION);
}
-/* Set the initialized field in a value struct. */
-
-void
-set_value_initialized (struct value *val, int status)
-{
- val->m_initialized = status;
-}
-
-/* Return the initialized field in a value struct. */
-
-int
-value_initialized (const struct value *val)
-{
- return val->m_initialized;
-}
-
/* Helper for value_fetch_lazy when the value is a bitfield. */
static void
enum lval_type lval () const
{ return m_lval; }
+ /* Set or return field indicating whether a variable is initialized or
+ not, based on debugging information supplied by the compiler.
+ 1 = initialized; 0 = uninitialized. */
+ int initialized () const
+ { return m_initialized; }
+
+ void set_initialized (int value)
+ { m_initialized = value; }
+
/* Type of value; either not an lval, or one of the various
different possible kinds of lval. */
extern void mark_value_bits_optimized_out (struct value *value,
LONGEST offset, LONGEST length);
-/* Set or return field indicating whether a variable is initialized or
- not, based on debugging information supplied by the compiler.
- 1 = initialized; 0 = uninitialized. */
-extern int value_initialized (const struct value *);
-extern void set_value_initialized (struct value *, int);
-
/* Set COMPONENT's location as appropriate for a component of WHOLE
--- regardless of what kind of lvalue WHOLE is. */
extern void set_value_component_location (struct value *component,