diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index fa7b282af51..cc8de97b193 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-03-19 Pedro Alves + + * gdb.base/async.c (foo): Make 'x' volatile. Write to it twice in + the same line. + 2014-03-19 Pedro Alves * gdb.base/async.c (main): Add "jump here" and "until here" line diff --git a/gdb/testsuite/gdb.base/async.c b/gdb/testsuite/gdb.base/async.c index fb5308248a8..76ce8be57a6 100644 --- a/gdb/testsuite/gdb.base/async.c +++ b/gdb/testsuite/gdb.base/async.c @@ -8,9 +8,10 @@ int foo () #endif { - int x, y; + int y; + volatile int x; - x = 5; + x = 5; x = 5; y = 3; return x + y;