diff options
author | Tom de Vries <tdevries@suse.de> | 2021-09-30 00:29:32 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2021-09-30 00:29:32 +0200 |
commit | 215b6d107c5ebf1c99e2a482c10ffb5c8c870602 (patch) | |
tree | 14c8ff43559d2e9b3ab1fb72868631961d667216 | |
parent | 689580daaaa2fcbd641faf9abb7da6e8b7a48f6e (diff) | |
download | gdb-215b6d107c5ebf1c99e2a482c10ffb5c8c870602.zip gdb-215b6d107c5ebf1c99e2a482c10ffb5c8c870602.tar.gz gdb-215b6d107c5ebf1c99e2a482c10ffb5c8c870602.tar.bz2 |
[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.
-rw-r--r-- | gdb/testsuite/gdb.base/break-interp.exp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/break-interp.exp b/gdb/testsuite/gdb.base/break-interp.exp index fd2b166..3460f76 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\\." { } } |