From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9154 invoked by alias); 14 Jul 2011 15:57:48 -0000 Received: (qmail 9144 invoked by uid 22791); 14 Jul 2011 15:57:47 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 14 Jul 2011 15:57:14 +0000 Received: (qmail 28522 invoked from network); 14 Jul 2011 15:57:13 -0000 Received: from unknown (HELO ?192.168.0.101?) (yao@127.0.0.2) by mail.codesourcery.com with ESMTPA; 14 Jul 2011 15:57:13 -0000 Message-ID: <4E1F11D2.3000706@codesourcery.com> Date: Thu, 14 Jul 2011 17:25:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110424 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: Tom Tromey CC: gdb-patches@sourceware.org Subject: Re: [patch] Skip async-shell.exp if displaced stepping is not supported References: <4E1D2EB9.3090909@codesourcery.com> In-Reply-To: Content-Type: multipart/mixed; boundary="------------010403030103060308030906" X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-07/txt/msg00370.txt.bz2 This is a multi-part message in MIME format. --------------010403030103060308030906 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-length: 480 On 07/13/2011 09:33 PM, Tom Tromey wrote: >>>>>> "Yao" == Yao Qi writes: > > Yao> 2011-07-13 Yao Qi > Yao> gdb/testsuite/ > Yao> * gdb.base/async-shell.exp: Skip test if displaced stepping is not > Yao> supported. > > Ok. > Thanks, Tom. When I was going to check in, I find there are other test cases on non-stop should be skipped in the same way. Patch here is to skip them in the same way. OK ? -- Yao (齐尧) --------------010403030103060308030906 Content-Type: text/x-patch; name="mi_non_stop_disp_step.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="mi_non_stop_disp_step.patch" Content-length: 3881 gdb/testsuite/ 2011-07-14 Yao Qi * gdb.mi/mi-nonstop-exit.exp: Skip test if displaced stepping is not supported. * gdb.mi/mi-nonstop.exp: Likewise. * gdb.mi/mi-ns-stale-regcache.exp: Likewise. * gdb.mi/mi-nsintrall.exp: Likewise. * gdb.mi/mi-nsmoribund.exp: Likewise. * gdb.mi/mi-nsthrexec.exp: Likewise. * gdb.python/py-evthreads.exp: Likewise. diff --git a/gdb/testsuite/gdb.mi/mi-nonstop-exit.exp b/gdb/testsuite/gdb.mi/mi-nonstop-exit.exp index b2e4948..8493b4c 100644 --- a/gdb/testsuite/gdb.mi/mi-nonstop-exit.exp +++ b/gdb/testsuite/gdb.mi/mi-nonstop-exit.exp @@ -13,6 +13,11 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +if { ![support_displaced_stepping] } { + unsupported "displaced stepping" + return -1 +} + load_lib mi-support.exp set MIFLAGS "-i=mi" diff --git a/gdb/testsuite/gdb.mi/mi-nonstop.exp b/gdb/testsuite/gdb.mi/mi-nonstop.exp index cb69c2d..ec88f02 100644 --- a/gdb/testsuite/gdb.mi/mi-nonstop.exp +++ b/gdb/testsuite/gdb.mi/mi-nonstop.exp @@ -14,6 +14,12 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . + +if { ![support_displaced_stepping] } { + unsupported "displaced stepping" + return -1 +} + load_lib mi-support.exp set MIFLAGS "-i=mi" diff --git a/gdb/testsuite/gdb.mi/mi-ns-stale-regcache.exp b/gdb/testsuite/gdb.mi/mi-ns-stale-regcache.exp index e760a2d..b8d5e4f 100644 --- a/gdb/testsuite/gdb.mi/mi-ns-stale-regcache.exp +++ b/gdb/testsuite/gdb.mi/mi-ns-stale-regcache.exp @@ -17,6 +17,11 @@ # Regression test for PR11557. Make sure we don't end up with a stale # register cache just after resuming a thread. +if { ![support_displaced_stepping] } { + unsupported "displaced stepping" + return -1 +} + load_lib mi-support.exp set MIFLAGS "-i=mi" diff --git a/gdb/testsuite/gdb.mi/mi-nsintrall.exp b/gdb/testsuite/gdb.mi/mi-nsintrall.exp index 6e1290a..046063b 100644 --- a/gdb/testsuite/gdb.mi/mi-nsintrall.exp +++ b/gdb/testsuite/gdb.mi/mi-nsintrall.exp @@ -13,6 +13,11 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +if { ![support_displaced_stepping] } { + unsupported "displaced stepping" + return -1 +} + load_lib mi-support.exp set MIFLAGS "-i=mi" diff --git a/gdb/testsuite/gdb.mi/mi-nsmoribund.exp b/gdb/testsuite/gdb.mi/mi-nsmoribund.exp index 33b1ac3..1bf8920 100644 --- a/gdb/testsuite/gdb.mi/mi-nsmoribund.exp +++ b/gdb/testsuite/gdb.mi/mi-nsmoribund.exp @@ -13,6 +13,11 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +if { ![support_displaced_stepping] } { + unsupported "displaced stepping" + return -1 +} + load_lib mi-support.exp set MIFLAGS "-i=mi" diff --git a/gdb/testsuite/gdb.mi/mi-nsthrexec.exp b/gdb/testsuite/gdb.mi/mi-nsthrexec.exp index ccb0edb..06dd1d9 100644 --- a/gdb/testsuite/gdb.mi/mi-nsthrexec.exp +++ b/gdb/testsuite/gdb.mi/mi-nsthrexec.exp @@ -23,6 +23,11 @@ if { [is_remote target] } then { continue } +if { ![support_displaced_stepping] } { + unsupported "displaced stepping" + return -1 +} + load_lib mi-support.exp set MIFLAGS "-i=mi" diff --git a/gdb/testsuite/gdb.python/py-evthreads.exp b/gdb/testsuite/gdb.python/py-evthreads.exp index 6ea7eb4..3ec6857 100644 --- a/gdb/testsuite/gdb.python/py-evthreads.exp +++ b/gdb/testsuite/gdb.python/py-evthreads.exp @@ -22,6 +22,11 @@ if $tracelevel then { strace $tracelevel } +if { ![support_displaced_stepping] } { + unsupported "displaced stepping" + return -1 +} + load_lib gdb-python.exp set testfile "py-evthreads" --------------010403030103060308030906--