aboutsummaryrefslogtreecommitdiff
path: root/gdb/eval.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-31 12:27:30 -0700
committerTom Tromey <tom@tromey.com>2023-02-13 15:21:07 -0700
commit9feb2d07debe7d04a33cbd90f895d529b7a04f41 (patch)
treee888b8d28f7cc96be1c72adb5bc593f5297859af /gdb/eval.c
parent8e5b19ad992b56cb3817dcbd4c656e2ffc3ee889 (diff)
downloadgdb-9feb2d07debe7d04a33cbd90f895d529b7a04f41.zip
gdb-9feb2d07debe7d04a33cbd90f895d529b7a04f41.tar.gz
gdb-9feb2d07debe7d04a33cbd90f895d529b7a04f41.tar.bz2
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>
Diffstat (limited to 'gdb/eval.c')
-rw-r--r--gdb/eval.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/eval.c b/gdb/eval.c
index 934ca4c..28b307f 100644
--- a/gdb/eval.c
+++ b/gdb/eval.c
@@ -651,7 +651,7 @@ evaluate_subexp_do_call (expression *exp, enum noside noside,
{
if (ftype->is_gnu_ifunc ())
{
- CORE_ADDR address = value_address (callee);
+ CORE_ADDR address = callee->address ();
type *resolved_type = find_gnu_ifunc_target_type (address);
if (resolved_type != NULL)
@@ -964,7 +964,7 @@ structop_base_operation::evaluate_funcall
``this'' pointer if necessary, so modify it to reflect any
``this'' changes. */
vals[0] = value_from_longest (lookup_pointer_type (temp->type ()),
- value_address (temp)
+ temp->address ()
+ temp->embedded_offset ());
}
@@ -1136,7 +1136,7 @@ eval_op_func_static_var (struct type *expect_type, struct expression *exp,
enum noside noside,
value *func, const char *var)
{
- CORE_ADDR addr = value_address (func);
+ CORE_ADDR addr = func->address ();
const block *blk = block_for_pc (addr);
struct block_symbol sym = lookup_symbol (var, blk, VAR_DOMAIN, NULL);
if (sym.symbol == NULL)