gdb/testsuite/
authorYao Qi <yao@codesourcery.com>
Tue, 27 Aug 2013 00:19:02 +0000 (00:19 +0000)
committerYao Qi <yao@codesourcery.com>
Tue, 27 Aug 2013 00:19:02 +0000 (00:19 +0000)
* lib/gdb.exp (gdb_remote_download): Don't pass $tofile to
remote_download if it is empty.

gdb/testsuite/ChangeLog
gdb/testsuite/lib/gdb.exp

index 570c2bc527815dc8e4560f72bbdddd5868a0b03f..cbc4e6ff0e3f68262530ea9d9b7762d7e1bdde3d 100644 (file)
@@ -1,3 +1,8 @@
+2013-08-27  Yao Qi  <yao@codesourcery.com>
+
+       * lib/gdb.exp (gdb_remote_download): Don't pass $tofile to
+       remote_download if it is empty.
+
 2013-08-26  Doug Evans  <dje@google.com>
 
        PR symtab/15885
index 8054485f7a70626ac956de5f3fc8fdb59a35b66a..9b319e235331ac078741a8dc8d31193497e16f9d 100644 (file)
@@ -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
This page took 0.039673 seconds and 4 git commands to generate.