aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python/py-finish-breakpoint2.exp
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2014-08-14 14:16:56 +0800
committerYao Qi <yao@codesourcery.com>2014-08-22 13:44:18 +0800
commit7c343b48b22f04616bd699779118ede2a6aac4b1 (patch)
tree2d9d7498a410999a744311e269939e12135917e8 /gdb/testsuite/gdb.python/py-finish-breakpoint2.exp
parentbaa23169d141b442cdbee3e79279793fe4fbc0f1 (diff)
downloadfsf-binutils-gdb-7c343b48b22f04616bd699779118ede2a6aac4b1.zip
fsf-binutils-gdb-7c343b48b22f04616bd699779118ede2a6aac4b1.tar.gz
fsf-binutils-gdb-7c343b48b22f04616bd699779118ede2a6aac4b1.tar.bz2
Copy .py files to remote host
Some gdb.python/*.exp tests fail because the .py files aren't copied to the (remote) host. This patch is to copy needed .py files to host. Most of gdb.python/*.exp tests do this. As it is still controversial to delete *.py files on host, we don't do that in this patch. gdb/testsuite: 2014-08-22 Yao Qi <yao@codesourcery.com> * gdb.python/py-finish-breakpoint.exp: Copy .py file to host. * gdb.python/py-finish-breakpoint2.exp: Likewise. * gdb.python/python.exp: Likewise. Use .py file on the host instead of the build.
Diffstat (limited to 'gdb/testsuite/gdb.python/py-finish-breakpoint2.exp')
-rw-r--r--gdb/testsuite/gdb.python/py-finish-breakpoint2.exp4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.python/py-finish-breakpoint2.exp b/gdb/testsuite/gdb.python/py-finish-breakpoint2.exp
index 95f55b7..203fc99 100644
--- a/gdb/testsuite/gdb.python/py-finish-breakpoint2.exp
+++ b/gdb/testsuite/gdb.python/py-finish-breakpoint2.exp
@@ -19,7 +19,6 @@
load_lib gdb-python.exp
standard_testfile .cc
-set pyfile ${srcdir}/${subdir}/${testfile}.py
if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug c++}]} {
return -1
@@ -33,6 +32,9 @@ if ![runto_main] then {
return 0
}
+set pyfile [gdb_remote_download host \
+ ${srcdir}/${subdir}/${testfile}.py]
+
#
# Check FinishBreakpoints against C++ exceptions
#