From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24643 invoked by alias); 30 May 2014 16:19:34 -0000 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 Received: (qmail 24631 invoked by uid 89); 30 May 2014 16:19:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Fri, 30 May 2014 16:19:33 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 3AAFE116283; Fri, 30 May 2014 12:19:31 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 3t0ioW0+x7xX; Fri, 30 May 2014 12:19:31 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 0B56E116265; Fri, 30 May 2014 12:19:31 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 8D2234001D; Fri, 30 May 2014 09:19:29 -0700 (PDT) Date: Fri, 30 May 2014 16:19:00 -0000 From: Joel Brobecker To: Pedro Alves Cc: gdb-patches@sourceware.org Subject: Re: [RFA/7.8] user breakpoint not inserted if software-single-step at same location Message-ID: <20140530161929.GE4289@adacore.com> References: <1401394280-14999-1-git-send-email-brobecker@adacore.com> <5387BFF0.6010208@redhat.com> <20140530122253.GC4289@adacore.com> <53887ED5.5050603@redhat.com> <20140530132659.GD4289@adacore.com> <5388AA76.4070101@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5388AA76.4070101@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2014-05/txt/msg00749.txt.bz2 > I have a very simple idea, around "jump" + "always-inserted". > > E.g., with, where b+ indicates a user breakpoint: > > 00001 nop <- PC > b+ 00002 nop > > - enable breakpoints always inserted mode > - step to 00002 > - gdb removes the sss breakpoint. > - due to always inserted mode, gdb does not remove b+, but > due to the bug, it's actually no longer planted. > - the b+ breakpoint should be reported to the user. > - now do "jump $pc". > - expected: > The breakpoint should trigger immediately again. > - what we get on sss targets: > GDB loses control, and program runs to end. > > Ah, I just went ahead and tried that against my by sss-on-x86 > branch, and indeed it fails here, while it passes on > pristine mainline / hardware stepping. That is very clever! WDYT about pushing this new testcase now? -- Joel