mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 09:58:19 +08:00
gdb/testsuite/
* lib/gdb.exp (gdb_remote_download): Don't pass $tofile to remote_download if it is empty.
This commit is contained in:
@ -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>
|
2013-08-26 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
PR symtab/15885
|
PR symtab/15885
|
||||||
|
@ -3296,7 +3296,12 @@ proc gdb_remote_download {dest fromfile {tofile {}}} {
|
|||||||
if {$dest == "host" && ![is_remote host] && $tofile == ""} {
|
if {$dest == "host" && ![is_remote host] && $tofile == ""} {
|
||||||
set tofile [standard_output_file [file tail $fromfile]]
|
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
|
# gdb_download
|
||||||
|
Reference in New Issue
Block a user