aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib/gdb.exp
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2013-08-27 00:19:02 +0000
committerYao Qi <yao@codesourcery.com>2013-08-27 00:19:02 +0000
commitce4ea2bb179312d14090f190dd0d974a65d64536 (patch)
treebdd1a9b1baad4ee391322f39bb69f5bcc67be925 /gdb/testsuite/lib/gdb.exp
parent243f1f0bda7b588c3ccbd2a773a86a90229a99a8 (diff)
downloadgdb-ce4ea2bb179312d14090f190dd0d974a65d64536.zip
gdb-ce4ea2bb179312d14090f190dd0d974a65d64536.tar.gz
gdb-ce4ea2bb179312d14090f190dd0d974a65d64536.tar.bz2
gdb/testsuite/
* lib/gdb.exp (gdb_remote_download): Don't pass $tofile to remote_download if it is empty.
Diffstat (limited to 'gdb/testsuite/lib/gdb.exp')
-rw-r--r--gdb/testsuite/lib/gdb.exp7
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 8054485..9b319e2 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -3296,7 +3296,12 @@ proc gdb_remote_download {dest fromfile {tofile {}}} {
if {$dest == "host" && ![is_remote host] && $tofile == ""} {
set tofile [standard_output_file [file tail $fromfile]]
}
- return [remote_download $dest $fromfile $tofile]
+
+ if { $tofile == "" } {
+ return [remote_download $dest $fromfile]
+ } else {
+ return [remote_download $dest $fromfile $tofile]
+ }
}
# gdb_download