summaryrefslogtreecommitdiff
path: root/gdb/frame.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-31 07:52:09 -0700
committerTom Tromey <tom@tromey.com>2023-02-13 15:21:06 -0700
commitd0c9791728caa0d3b3270a997c7fd97919976c97 (patch)
tree1753b7232efa89e05696d4289d60ad019fc161e4 /gdb/frame.c
parent7cf57bc5be656c62cc6b80280a9eddad2b8ded3f (diff)
downloadbinutils-gdb-d0c9791728caa0d3b3270a997c7fd97919976c97.tar.gz
Turn value_type into method
This changes value_type to be a method of value. Much of this patch was written by script. 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 c69a3ea0cb0..61a79231d7a 100644
--- a/gdb/frame.c
+++ b/gdb/frame.c
@@ -1202,9 +1202,9 @@ frame_register_unwind (frame_info_ptr next_frame, int regnum,
{
if (!*optimizedp && !*unavailablep)
memcpy (bufferp, value_contents_all (value).data (),
- value_type (value)->length ());
+ value->type ()->length ());
else
- memset (bufferp, 0, value_type (value)->length ());
+ memset (bufferp, 0, value->type ()->length ());
}
/* Dispose of the new value. This prevents watchpoints from