[PATCH] gdb: Ensure compiler doesn't optimise variable out in test
Tom Tromey
tom@tromey.com
Wed Aug 29 18:27:00 GMT 2018
>>>>> "Andrew" == Andrew Burgess <andrew.burgess@embecosm.com> writes:
Andrew> In this patch I propose that a use of 'a' is added after the calls to
Andrew> hitbottom and recurse, this should cause the compiler to keep 'a'
Andrew> around, which should ensure GDB can find it.
Andrew> gdb/testsuite/ChangeLog:
Andrew> * gdb.base/funcargs.c (use_a): New function.
Andrew> (recurse): Call use_a.
Thanks, this is ok.
Tom
More information about the Gdb-patches
mailing list