aboutsummaryrefslogtreecommitdiff
path: root/gdb/frame.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/frame.c
parent8e5b19ad992b56cb3817dcbd4c656e2ffc3ee889 (diff)
downloadbinutils-9feb2d07debe7d04a33cbd90f895d529b7a04f41.zip
binutils-9feb2d07debe7d04a33cbd90f895d529b7a04f41.tar.gz
binutils-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/frame.c')
-rw-r--r--gdb/frame.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/frame.c b/gdb/frame.c
index dd9d6bf..a4c4482 100644
--- a/gdb/frame.c
+++ b/gdb/frame.c
@@ -1192,7 +1192,7 @@ frame_register_unwind (frame_info_ptr next_frame, int regnum,
*optimizedp = value_optimized_out (value);
*unavailablep = !value_entirely_available (value);
*lvalp = VALUE_LVAL (value);
- *addrp = value_address (value);
+ *addrp = value->address ();
if (*lvalp == lval_register)
*realnump = VALUE_REGNUM (value);
else
@@ -1302,7 +1302,7 @@ frame_unwind_register_value (frame_info_ptr next_frame, int regnum)
else if (VALUE_LVAL (value) == lval_memory)
gdb_printf (&debug_file, " address=%s",
paddress (gdbarch,
- value_address (value)));
+ value->address ()));
else
gdb_printf (&debug_file, " computed");