diff options
author | Tom de Vries <tdevries@suse.de> | 2023-09-08 12:27:02 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2023-09-08 12:27:02 +0200 |
commit | 92b7ae3f9a3333cb7902c8a7676ae7ed5bcd54d0 (patch) | |
tree | 260299c88969f7ad6535fd72460c04215b6fbdae | |
parent | 7f49a8c074271efcf7930f4a476927155170a3d1 (diff) | |
download | gdb-92b7ae3f9a3333cb7902c8a7676ae7ed5bcd54d0.zip gdb-92b7ae3f9a3333cb7902c8a7676ae7ed5bcd54d0.tar.gz gdb-92b7ae3f9a3333cb7902c8a7676ae7ed5bcd54d0.tar.bz2 |
[gdb/testsuite] Add kfail in gdb.dwarf2/dwzbuildid.exp
When running test-case gdb.dwarf2/dwzbuildid.exp using target board readnow, I
get:
...
(gdb) file dwzbuildid-mismatch^M
Reading symbols from dwzbuildid-mismatch...^M
warning: File "dwzbuildid5.o" has a different build-id, file skipped^M
could not find '.gnu_debugaltlink' file for dwzbuildid-mismatch^M
(gdb) delete breakpoints^M
(gdb) info breakpoints^M
No breakpoints or watchpoints.^M
(gdb) break -qualified main^M
No symbol table is loaded. Use the "file" command.^M
Make breakpoint pending on future shared library load? (y or [n]) n^M
(gdb) FAIL: gdb.dwarf2/dwzbuildid.exp: mismatch: gdb_breakpoint: set breakpoint at main
...
This is PR symtab/26797: when using readnow, a failure in reading the dwarf
results in the minimal symbols not being available.
Add a corresponding KFAIL.
Tested on x86_64-linux.
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/dwzbuildid.exp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/dwzbuildid.exp b/gdb/testsuite/gdb.dwarf2/dwzbuildid.exp index 721aef8..81cefc6 100644 --- a/gdb/testsuite/gdb.dwarf2/dwzbuildid.exp +++ b/gdb/testsuite/gdb.dwarf2/dwzbuildid.exp @@ -160,6 +160,13 @@ foreach testname {ok mismatch fallback} { gdb_load ${binfile}-${testname} + if { $testname == "mismatch" && [readnow] } { + # Main is found in the minimal symbols. When using readnow, a + # failure to read the dwarf also causes the minimal symbols to be + # unavailable. + # Setup a kfail for "FAIL: gdb_breakpoint: set breakpoint at main". + setup_kfail "symtab/26797" *-*-* + } if {[runto_main]} { if {$testname == "mismatch"} { gdb_test "print the_int" \ |