From 26fca3f1fe3739939094161e94a80723cab52420 Mon Sep 17 00:00:00 2001 From: Aditya Vidyadhar Kamath Date: Fri, 25 Aug 2023 09:12:57 -0500 Subject: [PATCH] Fix 64 bit red zone frame size in AIX --- gdb/rs6000-aix-tdep.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.30.2