[pushed,gdb/testsuite] Fix gdb.threads/execl.exp for remote target
Commit Message
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 | 3 +++
1 file changed, 3 insertions(+)
base-commit: e9f59c6f6c02242c272171e28dd6dfec2fcf7a1c
@@ -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