diff options
author | Tom de Vries <tdevries@suse.de> | 2025-04-23 10:07:28 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2025-04-23 10:07:28 +0200 |
commit | d8ad730791302c1ae13c54eaba7dccac0d09d656 (patch) | |
tree | e1c61ed32a56992b401aa1c091ed95efe936382b | |
parent | 1b4493da0897761187816d795de2562cf91ffc8a (diff) | |
download | binutils-d8ad730791302c1ae13c54eaba7dccac0d09d656.zip binutils-d8ad730791302c1ae13c54eaba7dccac0d09d656.tar.gz binutils-d8ad730791302c1ae13c54eaba7dccac0d09d656.tar.bz2 |
[gdb/testsuite] Update regexp in gdb.debuginfod/fetch_src_and_symbols.exp
Since commit 7b80401da00 ("Handle DWARF 5 separate debug sections"), test-case
gdb.debuginfod/fetch_src_and_symbols.exp fails here:
...
(gdb) file fetch_src_and_symbols_alt.o^M
Reading symbols from fetch_src_and_symbols_alt.o...^M
warning: could not find supplementary DWARF file \
(fetch_src_and_symbols_dwz.o) for fetch_src_and_symbols_alt.o^M
(gdb) FAIL: $exp: no_url: file fetch_src_and_symbols_alt.o
...
because this is expected:
...
(gdb) file fetch_src_and_symbols_alt.o^M
Reading symbols from fetch_src_and_symbols_alt.o...^M
warning: could not find '.gnu_debugaltlink' file for \
fetch_src_and_symbols_alt.o^M
(gdb) PASS: $exp: no_url: file fetch_src_and_symbols_alt.o
...
Fix this by updating the regexp.
Tested on x86_64-linux.
-rw-r--r-- | gdb/testsuite/gdb.debuginfod/fetch_src_and_symbols.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.debuginfod/fetch_src_and_symbols.exp b/gdb/testsuite/gdb.debuginfod/fetch_src_and_symbols.exp index 7b36f65..4b3894e 100644 --- a/gdb/testsuite/gdb.debuginfod/fetch_src_and_symbols.exp +++ b/gdb/testsuite/gdb.debuginfod/fetch_src_and_symbols.exp @@ -152,7 +152,7 @@ proc_with_prefix no_url { } { # Test that GDB cannot find dwz without debuginfod. clean_restart gdb_test "file ${binfile}_alt.o" \ - ".*could not find '.gnu_debugaltlink'.*" \ + ".*could not find supplementary DWARF file .*" \ "file [file tail ${binfile}_alt.o]" # Generate a core file and test that GDB cannot find the |