diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index c3d5182d1e5..b788c0f8eca 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2015-08-24 Luis Machado + + * gdb.opt/inline-bt.c: New volatile global z. + * gdb.opt/inline-cmds.c: Likewise. + * gdb.opt/inline-locals.c: Likewise. + * gdb.opt/inline-markers.c: New extern global z. + (marker): Use z. + (inline_fn): Likewise. + 2015-08-24 Pedro Alves * config/m32r-stub.exp: Remove file. diff --git a/gdb/testsuite/gdb.opt/inline-bt.c b/gdb/testsuite/gdb.opt/inline-bt.c index dc2bd45c37f..a47d16e6afd 100644 --- a/gdb/testsuite/gdb.opt/inline-bt.c +++ b/gdb/testsuite/gdb.opt/inline-bt.c @@ -23,6 +23,7 @@ #endif int x, y; +volatile int z = 0; volatile int result; void bar(void); diff --git a/gdb/testsuite/gdb.opt/inline-cmds.c b/gdb/testsuite/gdb.opt/inline-cmds.c index 9955720c912..cc43b57b689 100644 --- a/gdb/testsuite/gdb.opt/inline-cmds.c +++ b/gdb/testsuite/gdb.opt/inline-cmds.c @@ -23,6 +23,7 @@ #endif int x, y; +volatile int z = 0; volatile int result; void bar(void); diff --git a/gdb/testsuite/gdb.opt/inline-locals.c b/gdb/testsuite/gdb.opt/inline-locals.c index fc018bfa960..fa5cd137b11 100644 --- a/gdb/testsuite/gdb.opt/inline-locals.c +++ b/gdb/testsuite/gdb.opt/inline-locals.c @@ -23,6 +23,7 @@ #endif int x, y; +volatile int z = 0; volatile int result; volatile int *array_p; diff --git a/gdb/testsuite/gdb.opt/inline-markers.c b/gdb/testsuite/gdb.opt/inline-markers.c index 46c68ae9d8e..5d5503331d4 100644 --- a/gdb/testsuite/gdb.opt/inline-markers.c +++ b/gdb/testsuite/gdb.opt/inline-markers.c @@ -13,7 +13,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -extern int x, y; +extern int x, y, z; void bar(void) { @@ -22,12 +22,12 @@ void bar(void) void marker(void) { - x += y; /* set breakpoint 2 here */ + x += y - z; /* set breakpoint 2 here */ } inline void inlined_fn(void) { - x += y; + x += y + z; } void noinline(void)