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.
-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\\." {
}
}