gdb/testsuite: fix gdb.base/msym-bp-shl when running with Clang
authorBruno Larsen <blarsen@redhat.com>
Wed, 20 Jul 2022 19:44:35 +0000 (16:44 -0300)
committerBruno Larsen <blarsen@redhat.com>
Thu, 22 Sep 2022 09:04:18 +0000 (11:04 +0200)
commit8d215439f665e51adc55dc2c4ba743ee576cb2fc
tree2dedde040e3303e34974ecfff227ab3b942e3223
parent4037b4191a0ed4f8fc51564416519886bc88a1b7
gdb/testsuite: fix gdb.base/msym-bp-shl when running with Clang

When trying to test gdb.base/msym-bp-shl.exp using clang, it would have
many failures because one of the version of the foo function was being
optimized away. Adding __attribute__ ((used)) to it fixed this.
gdb/testsuite/gdb.base/msym-bp-shl-main-2.c