aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/gdb1555.exp
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2023-01-23 10:32:45 +0100
committerTom de Vries <tdevries@suse.de>2023-01-23 10:32:45 +0100
commit36025e8f484a9d1a6ecc5f436344b1d7a09f470b (patch)
tree735195dab8b13cfb2af3ed892cd0b30250697bae /gdb/testsuite/gdb.base/gdb1555.exp
parentbc0c6793fb45b491c6324614298a2880a34d3966 (diff)
downloadgdb-36025e8f484a9d1a6ecc5f436344b1d7a09f470b.zip
gdb-36025e8f484a9d1a6ecc5f436344b1d7a09f470b.tar.gz
gdb-36025e8f484a9d1a6ecc5f436344b1d7a09f470b.tar.bz2
[gdb/testsuite] Simplify gdb.base/unwind-on-each-insn.exp
In test-case gdb.base/unwind-on-each-insn.exp, we try to determine the last disassembled insn in function foo. This in it self is fragile, as demonstrated by commit 91836f41e20 ("Powerpc fix for gdb.base/unwind-on-each-insn.exp"). The use of the last disassembled insn in the test-case is to stop stepping in foo once reaching it. However, the intent is to stop stepping just before returning to main. There is no guarantee that the last disassembled insn: - is actually executed - is executed just before returning to main - is executed only once. Fix this by simplying the test-case to continue stepping till stepping out of foo. Tested on x86_64-linux.
Diffstat (limited to 'gdb/testsuite/gdb.base/gdb1555.exp')
0 files changed, 0 insertions, 0 deletions