Hi Ulrich, Please find attached the patch. See:- 0001-Change-gdb.base-examine-backwards.exp-for-AIX.patch >>So shall we remove this const and create the git patch? >Yes, I think this would be the better solution. Kindly push this patch if there are no changes. If not let me know. Thanks and regards, Aditya. From: Ulrich Weigand Date: Monday, 6 November 2023 at 6:37 PM To: gdb-patches@sourceware.org , Aditya Kamath1 Cc: Sangamesh Mallayya Subject: Re: [PATCH]-Change gdb.base/examine-backwards.exp testcase for AIX Aditya Kamath1 wrote: >> I assume the existing dummy assignment >> int dummy = Barrier[0] + TestStrings[0] + TestStringsH[0] + TestStringsW[0]; >> is optimized out on AIX for some reason? >> >> Does it work if you move "dummy" to be global variable, >> and/or make the Barrier and TestStrings* variable non-const? > >Yes Ulrich. It works if we make variables non-const. Kindly see the output below. OK, good. >So shall we remove this const and create the git patch? Yes, I think this would be the better solution. Bye, Ulrich