[gdb/testsuite] Fix gdb.arch/i386-biarch-core.exp for remote host
authorTom de Vries <tdevries@suse.de>
Fri, 17 Mar 2023 18:25:18 +0000 (19:25 +0100)
committerTom de Vries <tdevries@suse.de>
Fri, 17 Mar 2023 18:25:18 +0000 (19:25 +0100)
Fix test-case gdb.arch/i386-biarch-core.exp using gdb_download_remote host.

Tested on x86_64-linux.

gdb/testsuite/gdb.arch/i386-biarch-core.exp

index f70b0922212731b18fda189f24ad9579f61306a0..7babfacf92110306896c780ff7af031d665aad59 100644 (file)
@@ -49,6 +49,8 @@ if {$corestat(size) != 102400} {
     return -1
 }
 
+set corefile [gdb_remote_download host $corefile]
+
 # First check if this particular GDB supports i386, otherwise we should not
 # expect the i386 core file to be loaded successfully.
 set archs [get_set_option_choices "set architecture" "i386"]