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:
@ -390,7 +390,7 @@ cp_print_value (struct value *val, struct ui_file *stream,
|
||||
struct type **dont_print_vb)
|
||||
{
|
||||
struct type *type = check_typedef (val->type ());
|
||||
CORE_ADDR address = value_address (val);
|
||||
CORE_ADDR address = val->address ();
|
||||
struct type **last_dont_print
|
||||
= (struct type **) obstack_next_free (&dont_print_vb_obstack);
|
||||
struct obstack tmp_obstack = dont_print_vb_obstack;
|
||||
@ -560,7 +560,7 @@ cp_print_static_field (struct type *type,
|
||||
if (real_type->code () == TYPE_CODE_STRUCT)
|
||||
{
|
||||
CORE_ADDR *first_dont_print;
|
||||
CORE_ADDR addr = value_address (val);
|
||||
CORE_ADDR addr = val->address ();
|
||||
int i;
|
||||
|
||||
first_dont_print
|
||||
|
Reference in New Issue
Block a user