fix up gdb.gdb
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.gdb / selftest.exp
index d700715eef3add02f2dced47170737df135d18b2..3f934cf92aeb69ba6d6bd8edb06b3eb9ab0e4e45 100644 (file)
@@ -479,11 +479,17 @@ proc test_with_self { executable } {
 
 set GDB_FULLPATH [find_gdb $GDB]
 
+if {[is_remote host]} {
+    set xgdb x$tool
+} else {
+    set xgdb [standard_output_file x$tool]
+}
+
 # Remove any old copy lying around.
-remote_file host delete x$tool
+remote_file host delete $xgdb
 
 gdb_start
-set file [remote_download host $GDB_FULLPATH x$tool]
+set file [remote_download host $GDB_FULLPATH $xgdb]
 set result [test_with_self $file]
 gdb_exit
 catch "remote_file host delete $file"
This page took 0.035182 seconds and 4 git commands to generate.