From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28643 invoked by alias); 16 Nov 2011 06:15:59 -0000 Received: (qmail 28630 invoked by uid 22791); 16 Nov 2011 06:15:57 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from shards.monkeyblade.net (HELO shards.monkeyblade.net) (198.137.202.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 16 Nov 2011 06:15:25 +0000 Received: from localhost (cpe-66-65-61-233.nyc.res.rr.com [66.65.61.233]) (authenticated bits=0) by shards.monkeyblade.net (8.14.4/8.14.4) with ESMTP id pAG6FN50029823 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 15 Nov 2011 22:15:24 -0800 Date: Wed, 16 Nov 2011 06:15:00 -0000 Message-Id: <20111116.011523.347441838363075044.davem@davemloft.net> To: gdb-patches@sourceware.org Subject: [PATCH] Fix signal handler single step test on Sparc/Linux From: David Miller Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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-11/txt/msg00420.txt.bz2 This target uses software single step, so we can't reliably step into a signal handler. Thus we shouldn't run tests such as gdb.base/kill-after-signal.exp Ok to commit? gdb/testsuite/ 2011-11-15 David S. Miller * lib/gdb.exp (can_single_step_to_signal_handler): Return zero when target is sparc*-*-linux diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 3f0bffd..5647172 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -1539,7 +1539,7 @@ proc can_single_step_to_signal_handler {} { # to determine the next instruction addresses, because start of signal # handler is one of them. if { [istarget "arm*-*-*"] || [istarget "mips*-*-*"] - || [istarget "tic6x-*-*"] } { + || [istarget "tic6x-*-*"] || [istarget "sparc*-*-linux"] } { return 0 }