diff options
author | Pedro Alves <palves@redhat.com> | 2017-06-12 19:04:52 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2017-06-12 19:04:52 +0100 |
commit | b3464d0316235899d9facf81896d7a427d5cd6d0 (patch) | |
tree | 1a3c7cc7785ca6b78e3d5f0ff1bb186bba7946a6 /gdb/valprint.c | |
parent | 4b76cda9938e4cb200bccffb6e020268c6a51b89 (diff) | |
download | gdb-b3464d0316235899d9facf81896d7a427d5cd6d0.zip gdb-b3464d0316235899d9facf81896d7a427d5cd6d0.tar.gz gdb-b3464d0316235899d9facf81896d7a427d5cd6d0.tar.bz2 |
mips-tdep.c: Remove MAX_REGISTER_SIZE usage
mips_eabi_push_dummy_call is storing the address of a struct in a
buffer that must have the same of the confisued/set ABI register size.
Add a define for the maximum ABI size and use it to size the local
buffer. Also rename the 'regsize' local to 'abi_regsize' for clarity.
Tested that --enable-targets=all still builds.
gdb/ChangeLog:
2017-06-12 Pedro Alves <palves@redhat.com>
Alan Hayward <alan.hayward@arm.com>
* mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
(mips_eabi_push_dummy_call): Rename local 'regsize' to
'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
Assert that abi_regsize bytes fit in 'ref_valbuf'.
Diffstat (limited to 'gdb/valprint.c')
0 files changed, 0 insertions, 0 deletions