aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.mi/mi-basics.exp
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2013-07-24 09:17:15 +0000
committerYao Qi <yao@codesourcery.com>2013-07-24 09:17:15 +0000
commita0607b84d2cbfb5c3a559cf5d3973bb32bebf44c (patch)
treefb1a435006f0e910a1b976bfb233662bbb8e9bdc /gdb/testsuite/gdb.mi/mi-basics.exp
parent614eb2779ca22862a330cad05dde3783516de44e (diff)
downloadgdb-a0607b84d2cbfb5c3a559cf5d3973bb32bebf44c.zip
gdb-a0607b84d2cbfb5c3a559cf5d3973bb32bebf44c.tar.gz
gdb-a0607b84d2cbfb5c3a559cf5d3973bb32bebf44c.tar.bz2
gdb/testsuite/
* gdb.mi/mi-var-cmd.exp: If host is remote, use ${testfile} on host. * gdb.mi/mi-basics.exp (test_exec_and_symbol_mi_operatons): Likewise. If host is remote, copy ${binfile} to host.
Diffstat (limited to 'gdb/testsuite/gdb.mi/mi-basics.exp')
-rw-r--r--gdb/testsuite/gdb.mi/mi-basics.exp15
1 files changed, 11 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-basics.exp b/gdb/testsuite/gdb.mi/mi-basics.exp
index c8bb3f7..f4ffa05 100644
--- a/gdb/testsuite/gdb.mi/mi-basics.exp
+++ b/gdb/testsuite/gdb.mi/mi-basics.exp
@@ -71,13 +71,20 @@ proc test_mi_interpreter_selection {} {
proc test_exec_and_symbol_mi_operatons {} {
global mi_gdb_prompt
- global binfile
+ global binfile testfile
+
+ if [is_remote host] {
+ set filename ${testfile}
+ remote_download host ${binfile} ${filename}
+ } else {
+ set filename ${binfile}
+ }
# Load symbols and specify executable on a single operation
# Tests:
# -file-exec-and-symbols
- if [mi_gdb_test "-file-exec-and-symbols ${binfile}" "\\\^done" \
+ if [mi_gdb_test "-file-exec-and-symbols ${filename}" "\\\^done" \
"file-exec-and-symbols operation"] {
note "Skipping all other MI tests."
return 0
@@ -98,11 +105,11 @@ proc test_exec_and_symbol_mi_operatons {} {
# "\\\^done" \
# "file-clear operation"
- mi_gdb_test "-file-exec-file ${binfile}" \
+ mi_gdb_test "-file-exec-file ${filename}" \
"\\\^done" \
"file-exec-file operation"
- mi_gdb_test "-file-symbol-file ${binfile}" \
+ mi_gdb_test "-file-symbol-file ${filename}" \
"\\\^done" \
"file-symbol-file operation"