aboutsummaryrefslogtreecommitdiff
path: root/gdb/arch-utils.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-31 13:45:40 -0700
committerTom Tromey <tom@tromey.com>2023-02-13 15:21:08 -0700
commitbbe912ba8898f5440028a35d0a206d70a6877ed6 (patch)
tree0ffc199020a35bd2968ce1a69d3686737eca7933 /gdb/arch-utils.c
parentee7bb2944b75ce482dbf3bdb2d396efc98f1cf89 (diff)
downloadgdb-bbe912ba8898f5440028a35d0a206d70a6877ed6.zip
gdb-bbe912ba8898f5440028a35d0a206d70a6877ed6.tar.gz
gdb-bbe912ba8898f5440028a35d0a206d70a6877ed6.tar.bz2
Turn some value_contents functions into methods
This turns value_contents_raw, value_contents_writeable, and value_contents_all_raw into methods on value. The remaining functions will be changed later in the series; they were a bit trickier and so I didn't include them in this patch. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/arch-utils.c')
-rw-r--r--gdb/arch-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c
index 49c699f..e3af9ce 100644
--- a/gdb/arch-utils.c
+++ b/gdb/arch-utils.c
@@ -1179,7 +1179,7 @@ default_gdbarch_return_value
if (read_value != nullptr)
{
*read_value = value::allocate (valtype);
- readbuf = value_contents_raw (*read_value).data ();
+ readbuf = (*read_value)->contents_raw ().data ();
}
return gdbarch->return_value (gdbarch, function, valtype, regcache,