aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python
diff options
context:
space:
mode:
authorNathan Froyd <froydnj@codesourcery.com>2009-11-12 15:15:26 +0000
committerNathan Froyd <froydnj@codesourcery.com>2009-11-12 15:15:26 +0000
commitf24fce77816b17011fdd159f529d1b2dceb4fdac (patch)
treea2e5480d69278e9fa23cc34922755550a348eb98 /gdb/testsuite/gdb.python
parent79862e457476f3782b7e832b6b2570230c08b8bf (diff)
downloadgdb-f24fce77816b17011fdd159f529d1b2dceb4fdac.zip
gdb-f24fce77816b17011fdd159f529d1b2dceb4fdac.tar.gz
gdb-f24fce77816b17011fdd159f529d1b2dceb4fdac.tar.bz2
* gdb.base/step-line.exp: Copy step-line.inp to the remote host.
* gdb.dwarf2/dw2-basic.exp: Copy file1.txt to the remote host. * gdb.dwarf2/dw2-compressed.exp: Likewise. * gdb.dwarf2/dw2-intercu.exp: Likewise. * gdb.dwarf2/dw2-intermix.exp: Likewise. * gdb.dwarf2/dw2-producer.exp: Likewise. * gdb.dwarf2/mac-fileno.exp: Likewise. * gdb.python/py-prettyprint.exp (run_lang_tests): Copy py-prettyprint.py to the remote host. * gdb.python/py-mi.exp: Copy py-mi.py to the remote host.
Diffstat (limited to 'gdb/testsuite/gdb.python')
-rw-r--r--gdb/testsuite/gdb.python/py-mi.exp6
-rw-r--r--gdb/testsuite/gdb.python/py-prettyprint.exp8
2 files changed, 11 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.python/py-mi.exp b/gdb/testsuite/gdb.python/py-mi.exp
index 30d6f32..2387c7d 100644
--- a/gdb/testsuite/gdb.python/py-mi.exp
+++ b/gdb/testsuite/gdb.python/py-mi.exp
@@ -43,7 +43,9 @@ if {[lsearch -exact [mi_get_features] python] < 0} {
mi_runto main
-mi_gdb_test "python execfile ('${srcdir}/${subdir}/${testfile}.py')" ""
+set remote_python_file [remote_download host ${srcdir}/${subdir}/${testfile}.py]
+
+mi_gdb_test "python execfile ('${remote_python_file}')" ""
mi_continue_to_line [gdb_get_line_number {MI breakpoint here} ${testfile}.c] \
"step to breakpoint"
@@ -232,3 +234,5 @@ mi_continue_to_line \
"step to second breakpoint"
mi_varobj_update_with_type_change container int 0 "update after type change"
+
+remote_file host delete ${remote_python_file}
diff --git a/gdb/testsuite/gdb.python/py-prettyprint.exp b/gdb/testsuite/gdb.python/py-prettyprint.exp
index b4b3776..14119f0 100644
--- a/gdb/testsuite/gdb.python/py-prettyprint.exp
+++ b/gdb/testsuite/gdb.python/py-prettyprint.exp
@@ -72,8 +72,10 @@ proc run_lang_tests {lang} {
gdb_test "b [gdb_get_line_number {break to inspect} ${testfile}.c ]" \
".*Breakpoint.*"
gdb_test "continue" ".*Breakpoint.*"
-
- gdb_test "python execfile ('${srcdir}/${subdir}/${testfile}.py')" ""
+
+ set remote_python_file [remote_download host ${srcdir}/${subdir}/${testfile}.py]
+
+ gdb_test "python execfile ('${remote_python_file}')" ""
gdb_test "print ss" " = a=< a=<1> b=<$hex>> b=< a=<2> b=<$hex>>"
gdb_test "print ssa\[1\]" " = a=< a=<5> b=<$hex>> b=< a=<6> b=<$hex>>"
@@ -103,6 +105,8 @@ proc run_lang_tests {lang} {
gdb_test "print c" " = container $hex \"container\" with 2 elements = {$nl *.0. = 23,$nl *.1. = 72$nl}"
gdb_test "continue" "Program exited normally\."
+
+ remote_file host delete ${remote_python_file}
}
run_lang_tests "c"