mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 01:50:24 +08:00
Turn value_parent into method
This changes value_parent to be a method of value. Much of this patch was written by script. Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
16
gdb/value.h
16
gdb/value.h
@ -189,6 +189,15 @@ struct value
|
||||
void set_bitpos (LONGEST bit)
|
||||
{ m_bitpos = bit; }
|
||||
|
||||
/* Only used for bitfields; the containing value. This allows a
|
||||
single read from the target when displaying multiple
|
||||
bitfields. */
|
||||
value *parent () const
|
||||
{ return m_parent.get (); }
|
||||
|
||||
void set_parent (struct value *parent)
|
||||
{ m_parent = value_ref_ptr::new_reference (parent); }
|
||||
|
||||
|
||||
/* Type of value; either not an lval, or one of the various
|
||||
different possible kinds of lval. */
|
||||
@ -367,13 +376,6 @@ struct value
|
||||
ULONGEST m_limited_length = 0;
|
||||
};
|
||||
|
||||
/* Only used for bitfields; the containing value. This allows a
|
||||
single read from the target when displaying multiple
|
||||
bitfields. */
|
||||
|
||||
struct value *value_parent (const struct value *);
|
||||
extern void set_value_parent (struct value *value, struct value *parent);
|
||||
|
||||
/* Describes offset of a value within lval of a structure in bytes.
|
||||
If lval == lval_memory, this is an offset to the address. If lval
|
||||
== lval_register, this is a further offset from location.address
|
||||
|
Reference in New Issue
Block a user