From: Aditya Vidyadhar Kamath Date: Fri, 25 Aug 2023 14:12:57 +0000 (-0500) Subject: Fix 64 bit red zone frame size in AIX X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=26fca3f1fe3739939094161e94a80723cab52420;p=binutils-gdb.git Fix 64 bit red zone frame size in AIX --- diff --git a/gdb/rs6000-aix-tdep.c b/gdb/rs6000-aix-tdep.c index 829f55981ca..1894f60d014 100644 --- a/gdb/rs6000-aix-tdep.c +++ b/gdb/rs6000-aix-tdep.c @@ -1391,7 +1391,9 @@ rs6000_aix_init_osabi (struct gdbarch_info info, struct gdbarch *gdbarch) 224. */ set_gdbarch_frame_red_zone_size (gdbarch, 224); else - set_gdbarch_frame_red_zone_size (gdbarch, 0); + /* In 64 bit mode the red zone should have 18 8 byte GPRS + 18 8 byte + FPRS making it 288 bytes. This is 16 byte aligned as well. */ + set_gdbarch_frame_red_zone_size (gdbarch, 288); if (tdep->wordsize == 8) set_gdbarch_wchar_bit (gdbarch, 32);