[gdb/testsuite] Fix gdb.dwarf2/dw2-error.exp with -readnow
authorTom de Vries <tdevries@suse.de>
Wed, 28 Oct 2020 20:04:12 +0000 (21:04 +0100)
committerTom de Vries <tdevries@suse.de>
Wed, 28 Oct 2020 20:04:12 +0000 (21:04 +0100)
commitf93b8760308333ef1113c213a5380719136f3f64
treed8b3836f42df3a1a274c4ff23be0f736cd502a91
parent1b00ef063f8230a1f110cc5aeef04d3dc1338358
[gdb/testsuite] Fix gdb.dwarf2/dw2-error.exp with -readnow

With test-case gdb.dwarf2/dw2-error.exp and target board readnow, we get:
...
FAIL: gdb.dwarf2/dw2-error.exp: break -q main
...

In the normal case, after running into the dwarf error, the minimal symbols
are still available, but with -readnow this is not the case.

Mark the FAIL as KFAIL.

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

2020-10-28  Tom de Vries  <tdevries@suse.de>

* gdb.dwarf2/dw2-error.exp: Mark failure break in main as known with
-readnow.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.dwarf2/dw2-error.exp