[binutils-gdb] [gdb/testsuite] Fix gdb.threads/execl.exp for remote target

Tom de Vries vries@sourceware.org
Tue Mar 7 15:11:16 GMT 2023


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=711b1f02f3e1789b0bd33816210a750cd0932f32

commit 711b1f02f3e1789b0bd33816210a750cd0932f32
Author: Tom de Vries <tdevries@suse.de>
Date:   Tue Mar 7 16:11:19 2023 +0100

    [gdb/testsuite] Fix gdb.threads/execl.exp for remote target
    
    Fix test-case gdb.threads/execl.exp on target board
    remote-gdbserver-on-localhost using gdb_remote_download.
    
    Tested on x86_64-linux.

Diff:
---
 gdb/testsuite/gdb.threads/execl.exp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gdb/testsuite/gdb.threads/execl.exp b/gdb/testsuite/gdb.threads/execl.exp
index ef4f1ea9c8d..92c6a6c8d81 100644
--- a/gdb/testsuite/gdb.threads/execl.exp
+++ b/gdb/testsuite/gdb.threads/execl.exp
@@ -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


More information about the Gdb-cvs mailing list