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:
parent
8e5b19ad99
commit
9feb2d07de
45 changed files with 166 additions and 167 deletions
|
@ -331,7 +331,7 @@ c_get_string (struct value *value, gdb::unique_xmalloc_ptr<gdb_byte> *buffer,
|
|||
if (VALUE_LVAL (value) != lval_memory)
|
||||
error (_("Attempt to take address of value "
|
||||
"not located in memory."));
|
||||
addr = value_address (value);
|
||||
addr = value->address ();
|
||||
}
|
||||
else
|
||||
addr = value_as_address (value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue