From 64403bd1832e10aa8324194968f72bdc5feb5aeb Mon Sep 17 00:00:00 2001 From: Alan Hayward Date: Tue, 11 Apr 2017 13:51:58 +0100 Subject: [PATCH] Remove MAX_REGISTER_SIZE from arm-tdep.c gdb/ * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE --- gdb/ChangeLog | 4 ++++ gdb/arm-tdep.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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) {