From: Alan Hayward Date: Tue, 11 Apr 2017 12:51:58 +0000 (+0100) Subject: Remove MAX_REGISTER_SIZE from arm-tdep.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=64403bd1832e10aa8324194968f72bdc5feb5aeb;p=binutils-gdb.git Remove MAX_REGISTER_SIZE from arm-tdep.c gdb/ * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 23028869004..dc3393a27f6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2017-04-11 Alan Hayward + + * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE + 2017-04-10 Sergio Durigan Junior PR gdb/21364 diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 9be79437941..5cc3f402e7e 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -8160,7 +8160,7 @@ arm_store_return_value (struct type *type, struct regcache *regs, if (TYPE_CODE (type) == TYPE_CODE_FLT) { - gdb_byte buf[MAX_REGISTER_SIZE]; + gdb_byte buf[FP_REGISTER_SIZE]; switch (gdbarch_tdep (gdbarch)->fp_model) {