[gdb/testsuite] Fix gdb.threads/execl.exp for remote target
authorTom de Vries <tdevries@suse.de>
Tue, 7 Mar 2023 15:11:19 +0000 (16:11 +0100)
committerTom de Vries <tdevries@suse.de>
Tue, 7 Mar 2023 15:11:19 +0000 (16:11 +0100)
Fix test-case gdb.threads/execl.exp on target board
remote-gdbserver-on-localhost using gdb_remote_download.

Tested on x86_64-linux.

gdb/testsuite/gdb.threads/execl.exp

index ef4f1ea9c8d30634780d2d577a0f196d3711bf27..92c6a6c8d8170ee4c706568e2f3c3f7553da1b01 100644 (file)
@@ -32,6 +32,9 @@ if {[gdb_compile "${srcdir}/${subdir}/${srcfile1}" "${binfile1}" executable {deb
 }
 
 clean_restart ${binfile}
+if { [is_remote target] } {
+    gdb_remote_download target $binfile1
+}
 
 runto_main