mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 19:50:13 +08:00
Turn value_address and set_value_address functions into methods
This changes the value_address and set_value_address functions to be methods of value. Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
26
gdb/value.h
26
gdb/value.h
@ -325,6 +325,19 @@ struct value
|
||||
void set_initialized (int value)
|
||||
{ m_initialized = value; }
|
||||
|
||||
/* If lval == lval_memory, return the address in the inferior. If
|
||||
lval == lval_register, return the byte offset into the registers
|
||||
structure. Otherwise, return 0. The returned address
|
||||
includes the offset, if any. */
|
||||
CORE_ADDR address () const;
|
||||
|
||||
/* Like address, except the result does not include value's
|
||||
offset. */
|
||||
CORE_ADDR raw_address () const;
|
||||
|
||||
/* Set the address of a value. */
|
||||
void set_address (CORE_ADDR);
|
||||
|
||||
|
||||
/* Type of value; either not an lval, or one of the various
|
||||
different possible kinds of lval. */
|
||||
@ -678,19 +691,6 @@ extern void set_value_component_location (struct value *component,
|
||||
possible kinds of lval. */
|
||||
#define VALUE_LVAL(val) (*((val)->deprecated_lval_hack ()))
|
||||
|
||||
/* If lval == lval_memory, return the address in the inferior. If
|
||||
lval == lval_register, return the byte offset into the registers
|
||||
structure. Otherwise, return 0. The returned address
|
||||
includes the offset, if any. */
|
||||
extern CORE_ADDR value_address (const struct value *);
|
||||
|
||||
/* Like value_address, except the result does not include value's
|
||||
offset. */
|
||||
extern CORE_ADDR value_raw_address (const struct value *);
|
||||
|
||||
/* Set the address of a value. */
|
||||
extern void set_value_address (struct value *, CORE_ADDR);
|
||||
|
||||
/* Pointer to internal variable. */
|
||||
extern struct internalvar **deprecated_value_internalvar_hack (struct value *);
|
||||
#define VALUE_INTERNALVAR(val) (*deprecated_value_internalvar_hack (val))
|
||||
|
Reference in New Issue
Block a user