aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python/py-prompt.exp
diff options
context:
space:
mode:
authorThiago Jung Bauermann <bauerman@br.ibm.com>2012-05-19 01:05:38 +0000
committerThiago Jung Bauermann <bauerman@br.ibm.com>2012-05-19 01:05:38 +0000
commitd791e1550cc8fbf4454437815e4193b6990d1014 (patch)
tree2337e9598d7439d3d60fefa70ad24c057a44079e /gdb/testsuite/gdb.python/py-prompt.exp
parent5e1b447d5af30b89cd67c83d144f8f14ed844d5c (diff)
downloadfsf-binutils-gdb-d791e1550cc8fbf4454437815e4193b6990d1014.zip
fsf-binutils-gdb-d791e1550cc8fbf4454437815e4193b6990d1014.tar.gz
fsf-binutils-gdb-d791e1550cc8fbf4454437815e4193b6990d1014.tar.bz2
* gdb.python/py-prompt.exp: Quit if the target is remote.
Diffstat (limited to 'gdb/testsuite/gdb.python/py-prompt.exp')
-rw-r--r--gdb/testsuite/gdb.python/py-prompt.exp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.python/py-prompt.exp b/gdb/testsuite/gdb.python/py-prompt.exp
index eacb074..ab17ab9 100644
--- a/gdb/testsuite/gdb.python/py-prompt.exp
+++ b/gdb/testsuite/gdb.python/py-prompt.exp
@@ -20,6 +20,10 @@ set testfile "py-prompt"
set srcfile ${testfile}.c
set binfile ${objdir}/${subdir}/${testfile}
+# We need to use TCL's exec to get the pid.
+if [is_remote target] then {
+ return 0
+}
load_lib gdb-python.exp
load_lib prompt.exp