public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [committed][gdb/testsuite] Fix gdb_load_no_complaints with gnu-debuglink
@ 2021-09-14 12:53 Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2021-09-14 12:53 UTC (permalink / raw)
  To: gdb-patches

Hi,

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.

Committed to trunk.

Thanks,
- Tom

[gdb/testsuite] Fix gdb_load_no_complaints with gnu-debuglink

---
 gdb/testsuite/lib/gdb.exp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 926c33293d2..929e6b1650a 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -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"
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-14 12:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-14 12:53 [committed][gdb/testsuite] Fix gdb_load_no_complaints with gnu-debuglink Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).