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.
This commit is contained in:
parent
614eb2779c
commit
a0607b84d2
3 changed files with 25 additions and 5 deletions
|
@ -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>
|
2013-07-23 Yao Qi <yao@codesourcery.com>
|
||||||
|
|
||||||
* gdb.mi/mi-var-cmd.exp: Adjust pattern to match current error
|
* gdb.mi/mi-var-cmd.exp: Adjust pattern to match current error
|
||||||
|
|
|
@ -71,13 +71,20 @@ proc test_mi_interpreter_selection {} {
|
||||||
|
|
||||||
proc test_exec_and_symbol_mi_operatons {} {
|
proc test_exec_and_symbol_mi_operatons {} {
|
||||||
global mi_gdb_prompt
|
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
|
# Load symbols and specify executable on a single operation
|
||||||
# Tests:
|
# Tests:
|
||||||
# -file-exec-and-symbols
|
# -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"] {
|
"file-exec-and-symbols operation"] {
|
||||||
note "Skipping all other MI tests."
|
note "Skipping all other MI tests."
|
||||||
return 0
|
return 0
|
||||||
|
@ -98,11 +105,11 @@ proc test_exec_and_symbol_mi_operatons {} {
|
||||||
# "\\\^done" \
|
# "\\\^done" \
|
||||||
# "file-clear operation"
|
# "file-clear operation"
|
||||||
|
|
||||||
mi_gdb_test "-file-exec-file ${binfile}" \
|
mi_gdb_test "-file-exec-file ${filename}" \
|
||||||
"\\\^done" \
|
"\\\^done" \
|
||||||
"file-exec-file operation"
|
"file-exec-file operation"
|
||||||
|
|
||||||
mi_gdb_test "-file-symbol-file ${binfile}" \
|
mi_gdb_test "-file-symbol-file ${filename}" \
|
||||||
"\\\^done" \
|
"\\\^done" \
|
||||||
"file-symbol-file operation"
|
"file-symbol-file operation"
|
||||||
|
|
||||||
|
|
|
@ -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\"\}\\\]" \
|
"\\^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"
|
"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"
|
"floating varobj invalidation"
|
||||||
|
|
||||||
mi_delete_varobj selected_a "delete selected_a"
|
mi_delete_varobj selected_a "delete selected_a"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue