]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2003-09-29 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Tue, 30 Sep 2003 21:10:20 +0000 (21:10 +0000)
committerAndrew Cagney <cagney@redhat.com>
Tue, 30 Sep 2003 21:10:20 +0000 (21:10 +0000)
* rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
to 224, not 220.

gdb/ChangeLog
gdb/rs6000-tdep.c

index fbf9683c64d2283a48ad4fce03b5ac17f090a05a..a5e999086f308253e7ec24b779576731706d6d2d 100644 (file)
@@ -1,3 +1,8 @@
+2003-09-30  Andrew Cagney  <cagney@redhat.com>
+
+       * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
+       to 224, not 220.
+
 2003-09-29  Andrew Cagney  <cagney@redhat.com>
 
        * NEWS: Mention Objective-C.
index c9413c90f211a808cfc8150e9ece39deb92e4f5b..53f442a4ac886cd227bfd43bc79267a7df79c820 100644 (file)
@@ -2948,8 +2948,11 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
     /* PPC64 SYSV.  */
     set_gdbarch_frame_red_zone_size (gdbarch, 288);
   else if (!sysv_abi && wordsize == 4)
-    /* PowerOpen / AIX 32 bit.  */
-    set_gdbarch_frame_red_zone_size (gdbarch, 220);
+    /* PowerOpen / AIX 32 bit.  The saved area or red zone consists of
+       19 4 byte GPRS + 18 8 byte FPRs giving a total of 220 bytes.
+       Problem is, 220 isn't frame (16 byte) aligned.  Round it up to
+       224.  */
+    set_gdbarch_frame_red_zone_size (gdbarch, 224);
   set_gdbarch_deprecated_save_dummy_frame_tos (gdbarch, generic_save_dummy_frame_tos);
   set_gdbarch_deprecated_push_return_address (gdbarch, ppc_push_return_address);
   set_gdbarch_believe_pcc_promotion (gdbarch, 1);