Remove MAX_REGISTER_SIZE from arm-tdep.c
authorAlan Hayward <alan.hayward@arm.com>
Tue, 11 Apr 2017 12:51:58 +0000 (13:51 +0100)
committerAlan Hayward <alan.hayward@arm.com>
Tue, 11 Apr 2017 12:51:58 +0000 (13:51 +0100)
gdb/
* arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE

gdb/ChangeLog
gdb/arm-tdep.c

index 2302886900434fd9cfd8574b534da39d6ccb3e3b..dc3393a27f6af6f0020b4ad590ef708788eca00b 100644 (file)
@@ -1,3 +1,7 @@
+2017-04-11  Alan Hayward  <alan.hayward@arm.com>
+
+       * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
+
 2017-04-10  Sergio Durigan Junior  <sergiodj@redhat.com>
 
        PR gdb/21364
index 9be79437941af89b877fff04dd4fa9f98f480693..5cc3f402e7eb3f1a3559a1b11d52a4d825f4cf05 100644 (file)
@@ -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)
        {