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:
Tom Tromey 2023-01-31 12:27:30 -07:00
parent 8e5b19ad99
commit 9feb2d07de
45 changed files with 166 additions and 167 deletions

View file

@ -1194,7 +1194,7 @@ gdbscm_value_to_lazy_string (SCM self, SCM rest)
low_bound,
low_bound + length - 1);
}
addr = value_address (value);
addr = value->address ();
break;
}
case TYPE_CODE_PTR:
@ -1204,7 +1204,7 @@ gdbscm_value_to_lazy_string (SCM self, SCM rest)
break;
default:
/* Should flag an error here. PR 20769. */
addr = value_address (value);
addr = value->address ();
break;
}