]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
GDB: Use gdb::array_view for buffers used in register reading and unwinding
authorThiago Jung Bauermann <thiago.bauermann@linaro.org>
Sun, 1 Sep 2024 17:56:10 +0000 (14:56 -0300)
committerThiago Jung Bauermann <thiago.bauermann@linaro.org>
Fri, 10 Jan 2025 21:52:04 +0000 (18:52 -0300)
commit7fcdec025c0510741f3d7efc53e623e03c29e7d3
tree4ac3f8fcd9b33b72f4fecd7ac5f3477be0da224d
parent53a34429c96dc752d12dcb8b85165e28f75ce03a
GDB: Use gdb::array_view for buffers used in register reading and unwinding

This allows checking the size of the given buffer.  Changes
frame_register_unwind (), frame_unwind_register (), get_frame_register ()
and deprecated_frame_register_read ().

As pointed out by Baris, in the case of MIPS target code this is best
done by changing a couple of alloca-based buffers in
mips_read_fp_register_single and mips_print_fp_register to
gdb::byte_vector instances.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/amd64-windows-tdep.c
gdb/frame.c
gdb/frame.h
gdb/mips-tdep.c