From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23932 invoked by alias); 19 Jul 2011 14:43:54 -0000 Received: (qmail 23920 invoked by uid 22791); 19 Jul 2011 14:43:53 -0000 X-SWARE-Spam-Status: No, hits=-2.4 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; Tue, 19 Jul 2011 14:43:39 +0000 Received: (qmail 28021 invoked from network); 19 Jul 2011 14:43:38 -0000 Received: from unknown (HELO ?192.168.0.100?) (yao@127.0.0.2) by mail.codesourcery.com with ESMTPA; 19 Jul 2011 14:43:38 -0000 Message-ID: <4E259815.8080001@codesourcery.com> Date: Tue, 19 Jul 2011 14:52: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: gdb-patches@sourceware.org Subject: [patch] Skip kill-after-signal.exp if hw single-step is not supported Content-Type: multipart/mixed; boundary="------------080209040404040706010802" 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/msg00468.txt.bz2 This is a multi-part message in MIME format. --------------080209040404040706010802 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-length: 386 This test `gdb_test "stepi" "\r\nhandler .*"' in kill-after-signal.exp performs a single-step, and deliver a signal (SIGUSR1) to inferior. Software single step can not do that, because the next instruction (start of handler) is unable to be determined. This patch is to allow running this case only on x86 and x86_64, on which hardware single step is supported. OK? -- Yao (齐尧) --------------080209040404040706010802 Content-Type: text/x-patch; name="skip_kill_after_signal.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="skip_kill_after_signal.patch" Content-length: 1013 2011-07-19 Yao Qi gdb/testsuite/ * gdb.base/kill-after-signal.exp: Skip if target doesn't support hardware single step. diff --git a/gdb/testsuite/gdb.base/kill-after-signal.exp b/gdb/testsuite/gdb.base/kill-after-signal.exp index eecad2e..df0afe7 100644 --- a/gdb/testsuite/gdb.base/kill-after-signal.exp +++ b/gdb/testsuite/gdb.base/kill-after-signal.exp @@ -14,6 +14,17 @@ # along with this program. If not, see . set testfile "kill-after-signal" + +if { ! [istarget "i?86-*-linux*"] + && ! [istarget "x86_64-*-linux*"] } { + # skip it if target doesn't support hardware single-step. In following tests, + # in "stepi", a signal is delivered along with single-step. In software single + # step, gdb is unable to determine the next instruction addresses, because start + # of signal handler is one of them. + untested ${testfile}.exp + return +} + if [prepare_for_testing ${testfile}.exp ${testfile}] { return -1 } --------------080209040404040706010802--