From d791e1550cc8fbf4454437815e4193b6990d1014 Mon Sep 17 00:00:00 2001 From: Thiago Jung Bauermann Date: Sat, 19 May 2012 01:05:38 +0000 Subject: [PATCH] * gdb.python/py-prompt.exp: Quit if the target is remote. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.python/py-prompt.exp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 4d8f17855af..879afdd76c4 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2012-05-18 Thiago Jung Bauermann + + * gdb.python/py-prompt.exp: Quit if the target is remote. + 2012-05-18 Jan Kratochvil Fix ERROR: internal buffer is full. diff --git a/gdb/testsuite/gdb.python/py-prompt.exp b/gdb/testsuite/gdb.python/py-prompt.exp index eacb074d2f2..ab17ab93bd7 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 -- 2.30.2