]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
GDB: trad-frame: Store length of value_bytes in trad_frame_saved_reg
authorThiago Jung Bauermann <thiago.bauermann@linaro.org>
Thu, 22 Aug 2024 22:42:45 +0000 (19:42 -0300)
committerThiago Jung Bauermann <thiago.bauermann@linaro.org>
Fri, 10 Jan 2025 01:47:21 +0000 (22:47 -0300)
commitad59259604f008e20490f9c82cf287d5a601a66c
tree4e99f99c286fa94b1eefe8effdcb5ebc2dbc7bbf
parent1f493519f703220bc072538ce3586f7363eba904
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>
gdb/frame-unwind.c
gdb/frame-unwind.h
gdb/jit.c
gdb/python/py-unwind.c
gdb/regcache.h
gdb/remote.c
gdb/trad-frame.h