aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dwarf2
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-05-29 08:57:16 -0600
committerTom Tromey <tom@tromey.com>2022-04-12 09:31:16 -0600
commit6dd7aa909b6f98202ebe995518613e565e11e1a5 (patch)
treeb2068aa2bcfdd83e8f4d0a239196e1e89f69b427 /gdb/testsuite/gdb.dwarf2
parentfa38ad7d8aa15309cfc51d4dec48108816e3fcbd (diff)
downloadgdb-6dd7aa909b6f98202ebe995518613e565e11e1a5.zip
gdb-6dd7aa909b6f98202ebe995518613e565e11e1a5.tar.gz
gdb-6dd7aa909b6f98202ebe995518613e565e11e1a5.tar.bz2
Adapt .gdb_index writer to new DWARF scanner
This updates the .gdb_index writer to work with the new DWARF scanner. The .debug_names writer is deferred to another patch, to make review simpler. This introduces a small hack to psyms_seen_size, but is inconsequential because this function will be deleted in a subsequent patch.
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2')
-rw-r--r--gdb/testsuite/gdb.dwarf2/gdb-index.exp5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/gdb-index.exp b/gdb/testsuite/gdb.dwarf2/gdb-index.exp
index 587b034..5badcac 100644
--- a/gdb/testsuite/gdb.dwarf2/gdb-index.exp
+++ b/gdb/testsuite/gdb.dwarf2/gdb-index.exp
@@ -90,12 +90,15 @@ gdb_test_multiple "mt print objfiles ${testfile}" $test {
-re "debug_names.*${gdb_prompt} $" {
set binfile_with_index $binfile
}
- -re "Psymtabs.*${gdb_prompt} $" {
+ -re "(Psymtabs|Cooked).*${gdb_prompt} $" {
set binfile_with_index [local_add_gdb_index $binfile]
if { ${binfile_with_index} == "" } {
return -1
}
}
+ -re ".*${gdb_prompt} $" {
+ fail "unrecognized symbol reader"
+ }
}
# Ok, we have a copy of $binfile with an index.