From ce4ea2bb179312d14090f190dd0d974a65d64536 Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Tue, 27 Aug 2013 00:19:02 +0000 Subject: [PATCH] gdb/testsuite/ * lib/gdb.exp (gdb_remote_download): Don't pass $tofile to remote_download if it is empty. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/lib/gdb.exp | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 570c2bc5278..cbc4e6ff0e3 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2013-08-27 Yao Qi + + * lib/gdb.exp (gdb_remote_download): Don't pass $tofile to + remote_download if it is empty. + 2013-08-26 Doug Evans PR symtab/15885 diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 8054485f7a7..9b319e23533 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 -- 2.30.2