From 215b6d107c5ebf1c99e2a482c10ffb5c8c870602 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Thu, 30 Sep 2021 00:29:32 +0200 Subject: [PATCH] [gdb/testsuite] Fix gdb.base/break-interp.exp for ld.so without debug When running test-case gdb.base/break-interp.exp on openSUSE Leap 42.3, I get: ... (gdb) info addr dl_main^M Symbol "dl_main" is at 0x1750 in a file compiled without debugging.^M (gdb) FAIL: gdb.base/break-interp.exp: info addr dl_main ... while the regexp expects "Symbol \"dl_main\" is a function at address $hex\\." Fix this by also accepting this variant. Tested on x86_64-linux. --- gdb/testsuite/gdb.base/break-interp.exp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gdb/testsuite/gdb.base/break-interp.exp b/gdb/testsuite/gdb.base/break-interp.exp index fd2b166de5d..3460f767c10 100644 --- a/gdb/testsuite/gdb.base/break-interp.exp +++ b/gdb/testsuite/gdb.base/break-interp.exp @@ -90,6 +90,9 @@ gdb_test_multiple "info addr dl_main" "" { -re -wrap "Symbol \"dl_main\" is a function at address $hex\\." { set dl_main_found 1 } + -re -wrap "Symbol \"dl_main\" is at $hex in a file compiled without debugging\\." { + set dl_main_found 1 + } -re -wrap "No symbol \"dl_main\" in current context\\." { } } -- 2.30.2