[gdb/testsuite] Fix gdb_load_no_complaints with gnu-debuglink
authorTom de Vries <tdevries@suse.de>
Tue, 14 Sep 2021 12:52:38 +0000 (14:52 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 14 Sep 2021 12:52:38 +0000 (14:52 +0200)
When running test-case gdb.dwarf2/dw2-ranges-psym-warning.exp with target
board gnu-debuglink I run into:
...
(gdb) file dw2-ranges-psym-warning^M
Reading symbols from dw2-ranges-psym-warning...^M
Reading symbols from .debug/dw2-ranges-psym-warning.debug...^M
(gdb) FAIL: gdb.dwarf2/dw2-ranges-psym-warning.exp: No complaints
...

Fix this by updating the regexp in gdb_load_no_complaints.

Tested on x86_64-linux.

gdb/testsuite/lib/gdb.exp

index 926c33293d24010af98adfa318d6ffe49c2cb2c5..929e6b1650a84464398511b86995501e30ba9614 100644 (file)
@@ -5406,8 +5406,8 @@ proc gdb_load_no_complaints { arg } {
     # Verify that there were no complaints.
     set re \
        [multi_line \
-            "^Reading symbols from \[^\r\n\]*" \
-            "(Expanding full symbols from \[^\r\n\]*" \
+            "^(Reading symbols from \[^\r\n\]*" \
+            ")+(Expanding full symbols from \[^\r\n\]*" \
             ")?$gdb_prompt $"]
     gdb_assert {[regexp $re $gdb_file_cmd_msg]} "No complaints"
 }