aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dap/ada-scopes/prog.adb
diff options
context:
space:
mode:
authorThiago Jung Bauermann <thiago.bauermann@linaro.org>2024-11-01 23:56:21 -0300
committerSimon Marchi <simon.marchi@polymtl.ca>2025-01-08 12:11:59 -0500
commitd70701731d1e3d9b6e87808f853b40e997ba0454 (patch)
tree670cf84f2e76c15b9ee6ac26af36ebfe3876cfc0 /gdb/testsuite/gdb.dap/ada-scopes/prog.adb
parent1da36057976ea565045f319e3d65be7412ca0588 (diff)
downloadbinutils-d70701731d1e3d9b6e87808f853b40e997ba0454.zip
binutils-d70701731d1e3d9b6e87808f853b40e997ba0454.tar.gz
binutils-d70701731d1e3d9b6e87808f853b40e997ba0454.tar.bz2
GDB, gdbserver: Convert regcache_register_size function to method
The regcache_register_size function has one implementation in GDB, and one in gdbserver. Both of them have a gdb::checked_static_cast to their corresponding regcache class. This can be avoided by defining a pure virtual register_size method in the reg_buffer_common class, which is then implemented by the reg_buffer class in GDB, and by the regcache class in gdbserver. Calls to the register_size () function from methods of classes in the reg_buffer_common hierarchy need to be changed to calls to the newly defined method, otherwise the compiler complains that a matching method cannot be found. Co-Authored-By: Simon Marchi <simon.marchi@efficios.com> Approved-By: Simon Marchi <simon.marchi@efficios.com> Reviewed-By: Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> Change-Id: I7f4f74a51e96c42604374e87321ca0e569bc07a3
Diffstat (limited to 'gdb/testsuite/gdb.dap/ada-scopes/prog.adb')
0 files changed, 0 insertions, 0 deletions