]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/testsuite/
authorYao Qi <yao@codesourcery.com>
Wed, 24 Jul 2013 09:17:15 +0000 (09:17 +0000)
committerYao Qi <yao@codesourcery.com>
Wed, 24 Jul 2013 09:17:15 +0000 (09:17 +0000)
* 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.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.mi/mi-basics.exp
gdb/testsuite/gdb.mi/mi-var-cmd.exp

index 238929e4861aab609aad0c950ecef2a90c112548..e35711b1a7f725058762bd7d31b6ff6e9c531db3 100644 (file)
@@ -1,3 +1,10 @@
+2013-07-24  Yao Qi  <yao@codesourcery.com>
+
+       * 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.
+
 2013-07-23  Yao Qi  <yao@codesourcery.com>
 
        * gdb.mi/mi-var-cmd.exp: Adjust pattern to match current error
index c8bb3f77014431a4b24224a8afe8fabec2bb9d6c..f4ffa05bb4e7c8fb7f893f0a8074ac1cfbc1b8a5 100644 (file)
@@ -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"
 
index 00dc0df6bb21755d32134ccd30cb81a9a9c9cfe9..e8925979104fc3f06acf14ac2eb610d6d4e8315f 100644 (file)
@@ -558,7 +558,13 @@ mi_gdb_test "-var-update selected_a" \
        "\\^done,changelist=\\\[\{name=\"selected_a\",in_scope=\"true\",type_changed=\"true\",new_type=\"int\",new_num_children=\"0\",has_more=\"0\"\}\\\]" \
        "update selected_a in do_special_tests"
 
-mi_gdb_test "-file-exec-and-symbols ${binfile}" "\\^done" \
+if [is_remote host] {
+    set filename ${testfile}
+} else {
+    set filename ${binfile}
+}
+
+mi_gdb_test "-file-exec-and-symbols ${filename}" "\\^done" \
     "floating varobj invalidation"
 
 mi_delete_varobj selected_a "delete selected_a"