From patchwork Fri Feb 12 15:53:08 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kyle mcmartin X-Patchwork-Id: 78907 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1CFrIYn005040 for ; Fri, 12 Feb 2010 15:53:18 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756869Ab0BLPxR (ORCPT ); Fri, 12 Feb 2010 10:53:17 -0500 Received: from bombadil.infradead.org ([18.85.46.34]:42641 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756617Ab0BLPxQ (ORCPT ); Fri, 12 Feb 2010 10:53:16 -0500 Received: from kyle by bombadil.infradead.org with local (Exim 4.69 #1 (Red Hat Linux)) id 1NfxpM-0000he-6C; Fri, 12 Feb 2010 15:53:10 +0000 Date: Fri, 12 Feb 2010 10:53:08 -0500 From: Kyle McMartin To: torvalds@linux-foundation.org Cc: vapier@gentoo.org, linux-parisc@vger.kernel.org, roland@redhat.com Subject: [PATCH] parisc: fix tracing of signals Message-ID: <20100212155306.GI24051@bombadil.infradead.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 12 Feb 2010 15:53:18 +0000 (UTC) diff --git a/arch/parisc/kernel/signal.c b/arch/parisc/kernel/signal.c index e8467e4..07b3dac 100644 --- a/arch/parisc/kernel/signal.c +++ b/arch/parisc/kernel/signal.c @@ -469,7 +469,9 @@ handle_signal(unsigned long sig, siginfo_t *info, struct k_sigaction *ka, recalc_sigpending(); spin_unlock_irq(¤t->sighand->siglock); - tracehook_signal_handler(sig, info, ka, regs, 0); + tracehook_signal_handler(sig, info, ka, regs, + test_thread_flag(TIF_SINGLESTEP) || + test_thread_flag(TIF_BLOCKSTEP)); return 1; }