]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Update regexp in gdb.debuginfod/fetch_src_and_symbols.exp
authorTom de Vries <tdevries@suse.de>
Wed, 23 Apr 2025 08:07:28 +0000 (10:07 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 23 Apr 2025 08:07:28 +0000 (10:07 +0200)
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.

gdb/testsuite/gdb.debuginfod/fetch_src_and_symbols.exp

index 7b36f6524c1f229783649d6d29a50e00f8cbafd0..4b3894e1baab0e1cf6497b7bb70ac69fecf61e0f 100644 (file)
@@ -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