diff options
author | Alan Hayward <alan.hayward@arm.com> | 2017-06-07 09:57:55 +0100 |
---|---|---|
committer | Alan Hayward <alan.hayward@arm.com> | 2017-06-07 09:57:55 +0100 |
commit | d1be909e7fbf753fd3aa18681089e3bcacbcf51c (patch) | |
tree | 3dc48a73303e0d8b6cc42e1cda68cc16b7ed167a /gdb | |
parent | 4936f23592b910d65cc9f077115559366f9c4662 (diff) | |
download | binutils-d1be909e7fbf753fd3aa18681089e3bcacbcf51c.zip binutils-d1be909e7fbf753fd3aa18681089e3bcacbcf51c.tar.gz binutils-d1be909e7fbf753fd3aa18681089e3bcacbcf51c.tar.bz2 |
Remove MAX_REGISTER_SIZE from aarch64-tdep.c
gdb/
* aarch64-tdep.c (aarch64_store_return_value): Use
V_REGISTER_SIZE.
(aarch64_pseudo_read_value): Likewise.
(aarch64_pseudo_write): Likewise.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/aarch64-tdep.c | 6 |
2 files changed, 10 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 666540a..d60c937 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2017-06-07 Alan Hayward <alan.hayward@arm.com> + + * aarch64-tdep.c (aarch64_store_return_value): Use + V_REGISTER_SIZE. + (aarch64_pseudo_read_value): Likewise. + (aarch64_pseudo_write): Likewise. + 2017-06-06 Yao Qi <yao.qi@linaro.org> * regformats/regdef.h (set_register_cache): Remove the diff --git a/gdb/aarch64-tdep.c b/gdb/aarch64-tdep.c index 000540a..a5db6ed 100644 --- a/gdb/aarch64-tdep.c +++ b/gdb/aarch64-tdep.c @@ -1987,7 +1987,7 @@ aarch64_store_return_value (struct type *type, struct regcache *regs, for (i = 0; i < elements; i++) { int regno = AARCH64_V0_REGNUM + i; - bfd_byte tmpbuf[MAX_REGISTER_SIZE]; + bfd_byte tmpbuf[V_REGISTER_SIZE]; if (aarch64_debug) { @@ -2241,7 +2241,7 @@ aarch64_pseudo_read_value (struct gdbarch *gdbarch, struct regcache *regcache, int regnum) { - gdb_byte reg_buf[MAX_REGISTER_SIZE]; + gdb_byte reg_buf[V_REGISTER_SIZE]; struct value *result_value; gdb_byte *buf; @@ -2336,7 +2336,7 @@ static void aarch64_pseudo_write (struct gdbarch *gdbarch, struct regcache *regcache, int regnum, const gdb_byte *buf) { - gdb_byte reg_buf[MAX_REGISTER_SIZE]; + gdb_byte reg_buf[V_REGISTER_SIZE]; /* Ensure the register buffer is zero, we want gdb writes of the various 'scalar' pseudo registers to behavior like architectural |