]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Fix gdb.dwarf2/fission-with-type-unit.exp with remote host
authorTom de Vries <tdevries@suse.de>
Thu, 10 Apr 2025 02:50:26 +0000 (04:50 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 10 Apr 2025 02:50:26 +0000 (04:50 +0200)
When running test-case gdb.dwarf2/fission-with-type-unit.exp with a remote
host configuration, say host board local-remote-host and target board
remote-gdbserver-on-localhost, I run into:
...
(gdb) maint expand-symtabs^M
During symbol reading: Could not find DWO CU \
  fission-with-type-unit.dwo(0xf00d) referenced by CU at offset 0x2d7 \
  [in module /home/remote-host/fission-with-type-unit]^M
warning: Could not find DWO CU fission-with-type-unit.dwo(0xf00d) referenced \
  by CU at offset 0x2d7 [in module /home/remote-host/fission-with-type-unit]^M
(gdb) FAIL: gdb.dwarf2/fission-with-type-unit.exp: maint expand-symtabs
...

Fix this by adding the missing download to remote host of the .dwo file.

Tested by running make-check-all.sh on x86_64-linux.

gdb/testsuite/gdb.dwarf2/fission-with-type-unit.exp

index a1b3bb75e74fa30c475e9685833b39c11acd7093..0a02f7c4b9e4cc272d981e7246c9d24bd2c73d84 100644 (file)
@@ -91,6 +91,10 @@ if { [gdb_compile_shlib $dwo_asm_file $dwo_file nodebug] != "" } {
     return
 }
 
+if { [is_remote host] } {
+    gdb_remote_download host $dwo_file
+}
+
 clean_restart ${testfile}
 
 # This would cause an internal error.