summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/inferior-died.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2014-03-19 15:22:44 +0000
committerPedro Alves <palves@redhat.com>2014-03-19 15:50:53 +0000
commitf48088c7de251319d9f874d07317d867e0cf66cb (patch)
tree9cabe492ef1c77cc76295b961d2e4b6a3ba4edd4 /gdb/testsuite/gdb.base/inferior-died.c
parente2f6c966284e2f204779e9c7becf260bd4fe5117 (diff)
downloadbinutils-gdb-f48088c7de251319d9f874d07317d867e0cf66cb.tar.gz
gdb.base/async.exp: Fix stepi& test.
Currently the test assumes that "stepi" over: 13 x = 5; end up somewhere midline. But, (at least) on x86, that assignment ends up compiled as just one movl instruction, so a stepi stops at the next line already: completed. PASS: gdb.base/async.exp: step & step& (gdb) foo () at ../../../src/gdb/testsuite/gdb.base/async.c:13 13 x = 5; completed. PASS: gdb.base/async.exp: step & stepi& (gdb) 14 y = 3; completed. FAIL: gdb.base/async.exp: (timeout) stepi & nexti& (gdb) 16 return x + y; completed. FAIL: gdb.base/async.exp: (timeout) nexti & finish& Run till exit from #0 foo () at ../../../src/gdb/testsuite/gdb.base/async.c:16 This patch fixes it, by making sure there's more than one instruction in that line. gdb/testsuite/ 2014-03-19 Pedro Alves <palves@redhat.com> * gdb.base/async.c (foo): Make 'x' volatile. Write to it twice in the same line.
Diffstat (limited to 'gdb/testsuite/gdb.base/inferior-died.c')
0 files changed, 0 insertions, 0 deletions