From: Tom de Vries Date: Wed, 29 Sep 2021 22:29:32 +0000 (+0200) Subject: [gdb/testsuite] Fix gdb.base/break-interp.exp for ld.so without debug X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=215b6d107c5ebf1c99e2a482c10ffb5c8c870602;p=binutils-gdb.git [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. --- 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\\." { } }