aboutsummaryrefslogtreecommitdiff
path: root/lib/target.exp
diff options
context:
space:
mode:
authorBen Elliston <bje@gnu.org>2018-11-30 12:18:54 +1100
committerBen Elliston <bje@gnu.org>2018-11-30 12:18:54 +1100
commit88486ad34305e2b6c9cd7f5e0efa65b709d30587 (patch)
tree3cf71534bba4823dbef8359bda9b4d170dbe63f3 /lib/target.exp
parent12028b93c50d35b79fd73860eb6d011b00a6d11c (diff)
downloaddejagnu-88486ad34305e2b6c9cd7f5e0efa65b709d30587.zip
dejagnu-88486ad34305e2b6c9cd7f5e0efa65b709d30587.tar.gz
dejagnu-88486ad34305e2b6c9cd7f5e0efa65b709d30587.tar.bz2
* runtest.exp: Use isremote.
* lib/target.exp: Likewise. * lib/remote.exp: Likewise. * lib/libgloss.exp: Likewise. * config/unix.exp: Likewise. * config/sim.exp: Likewise. * config/gdb_stub.exp: Likewise. * config/gdb-comm.exp: Likewise. * baseboards/basic-sim.exp: Likewise. * baseboards/androideabi.exp: Likewise.
Diffstat (limited to 'lib/target.exp')
-rw-r--r--lib/target.exp18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/target.exp b/lib/target.exp
index 67655e6..ba6253f 100644
--- a/lib/target.exp
+++ b/lib/target.exp
@@ -495,7 +495,7 @@ proc default_target_compile {source destfile type options} {
}
}
- if {![is_remote host]} {
+ if {![isremote host]} {
if { [which $compiler] == 0 } {
return "default_target_compile: Can't find $compiler."
}
@@ -604,7 +604,7 @@ proc default_target_compile {source destfile type options} {
verbose "doing compile"
set sources ""
- if {[is_remote host]} {
+ if {[isremote host]} {
foreach x $source {
set file [remote_download host $x]
if { $file == "" } {
@@ -618,7 +618,7 @@ proc default_target_compile {source destfile type options} {
set sources $source
}
- if {[is_remote host]} {
+ if {[isremote host]} {
append add_flags " -o a.out"
remote_file host delete a.out
} else {
@@ -636,7 +636,7 @@ proc default_target_compile {source destfile type options} {
set opts "$sources $add_flags"
}
- if {[is_remote host]} {
+ if {[isremote host]} {
if {[host_info exists use_at]} {
set fid [open "atfile" "w"]
puts $fid "$opts"
@@ -661,7 +661,7 @@ proc default_target_compile {source destfile type options} {
}
set compiler_flags $opts
- if {[is_remote host]} {
+ if {[isremote host]} {
remote_upload host a.out $destfile
remote_file host delete a.out
}
@@ -711,14 +711,14 @@ proc default_target_assemble { source destfile flags } {
append flags " $ASFLAGS_FOR_TARGET"
}
- if {[is_remote host]} {
+ if {[isremote host]} {
set source [remote_download host $source]
set dest "a.out"
} else {
set dest $destfile
}
set status [remote_exec host "$AS $source $flags -o $dest"]
- if {[is_remote host]} {
+ if {[isremote host]} {
remote_upload host $dest $destfile
}
@@ -799,7 +799,7 @@ proc default_link { board objects destfile flags } {
append flags " $ldscript"
}
- if {[is_remote host]} {
+ if {[isremote host]} {
set nobjects ""
foreach x $objects {
set nobjects "$nobjects [remote_download host $x]"
@@ -810,7 +810,7 @@ proc default_link { board objects destfile flags } {
set dest $destfile
}
set status [remote_exec host "$LD $objects $flags -o $dest"]
- if {[is_remote host]} {
+ if {[isremote host]} {
remote_upload host $dest $destfile
}