From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2143 invoked by alias); 10 Feb 2009 19:18:17 -0000 Received: (qmail 2134 invoked by uid 22791); 10 Feb 2009 19:18:17 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 10 Feb 2009 19:18:11 +0000 Received: (qmail 26684 invoked from network); 10 Feb 2009 19:18:09 -0000 Received: from unknown (HELO orlando) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 10 Feb 2009 19:18:09 -0000 From: Pedro Alves To: gdb@sourceware.org Subject: Re: Regression Date: Tue, 10 Feb 2009 19:18:00 -0000 User-Agent: KMail/1.9.10 Cc: Mark Kettenis , drow@false.org References: <200902101517.n1AFH7YP000549@brahms.sibelius.xs4all.nl> <200902101839.n1AId4Mb031903@brahms.sibelius.xs4all.nl> <200902101905.37812.pedro@codesourcery.com> In-Reply-To: <200902101905.37812.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200902101918.13308.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-02/txt/msg00088.txt.bz2 Extended this a bit more: On Tuesday 10 February 2009 19:05:37, Pedro Alves wrote: > The part that's breaking the BSDs is the fact that we now > remove breakpoints from the inferior. On Tuesday 10 February 2009 18:39:04, Mark Kettenis wrote: > Indeed. OpenBSD/i386 (as well as NetBSD, FreeBSD and probably Darwin) > clears the trace bit before running the signal handler. We don't see the problem on linux, since there's a stop and resume *right at the begining* of the signal handler, due to the single-step entering the signal handler. GDB happens to re-install breakpoints in the inferior in that resume. This happens *before* the inferior's flow passing by the instruction where there's a breakpoint at ("break handle_USR1" is installed after the prologue). -- Pedro Alves