aboutsummaryrefslogtreecommitdiff
path: root/gdb/frame-unwind.h
diff options
context:
space:
mode:
authorThiago Jung Bauermann <thiago.bauermann@linaro.org>2024-08-22 19:42:45 -0300
committerThiago Jung Bauermann <thiago.bauermann@linaro.org>2025-01-09 22:47:21 -0300
commitad59259604f008e20490f9c82cf287d5a601a66c (patch)
tree4e99f99c286fa94b1eefe8effdcb5ebc2dbc7bbf /gdb/frame-unwind.h
parent1f493519f703220bc072538ce3586f7363eba904 (diff)
downloadbinutils-ad59259604f008e20490f9c82cf287d5a601a66c.zip
binutils-ad59259604f008e20490f9c82cf287d5a601a66c.tar.gz
binutils-ad59259604f008e20490f9c82cf287d5a601a66c.tar.bz2
GDB: trad-frame: Store length of value_bytes in trad_frame_saved_reg
The goal is to ensure that it is available in frame_unwind_got_bytes () to make sure that the provided buf isn't larger than the size of the register being provisioned. In the process, regcache's cached_reg_t::data also needed to be converted to a gdb::byte_vector, so that the register contents' size can be tracked. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/frame-unwind.h')
-rw-r--r--gdb/frame-unwind.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/frame-unwind.h b/gdb/frame-unwind.h
index 1799d36..480c9c8 100644
--- a/gdb/frame-unwind.h
+++ b/gdb/frame-unwind.h
@@ -226,7 +226,7 @@ value *frame_unwind_got_constant (const frame_info_ptr &frame, int regnum,
inside BUF. */
value *frame_unwind_got_bytes (const frame_info_ptr &frame, int regnum,
- const gdb_byte *buf);
+ gdb::array_view<const gdb_byte> buf);
/* Return a value which indicates that FRAME's saved version of REGNUM
has a known constant (computed) value of ADDR. Convert the