DWARF-5: .debug_names index consumer
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / maint.exp
index 782a21c6949c3fe609bb282981f520e96ed44bc2..8d1a4d0e0d1492ad7c7873a9b54310df1ae27359 100644 (file)
@@ -89,10 +89,13 @@ if ![runto_main] then {
         perror "tests suppressed"
 }
 
-# If we're using .gdb_index there will be no psymtabs.
+# If we're using .gdb_index or .debug_names there will be no psymtabs.
 set have_gdb_index 0
-gdb_test_multiple "maint info sections .gdb_index" "check for .gdb_index" {
-    -re ": .gdb_index.*$gdb_prompt $" {
+gdb_test_multiple "maint info sections .gdb_index .debug_names" "check for .gdb_index" {
+    -re ": \\.gdb_index .*\r\n$gdb_prompt $" {
+       set have_gdb_index 1
+    }
+    -re ": \\.debug_names .*\r\n$gdb_prompt $" {
        set have_gdb_index 1
     }
     -re ".*$gdb_prompt $" {
This page took 0.024811 seconds and 4 git commands to generate.