From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23989 invoked by alias); 20 Sep 2012 18:40:47 -0000 Received: (qmail 23964 invoked by uid 22791); 20 Sep 2012 18:40:44 -0000 X-SWARE-Spam-Status: No, hits=-6.6 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 20 Sep 2012 18:40:26 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q8KIePoo005753 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 20 Sep 2012 14:40:26 -0400 Received: from psique (ovpn-113-44.phx2.redhat.com [10.3.113.44]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q8KIeNJQ003773; Thu, 20 Sep 2012 14:40:24 -0400 From: Sergio Durigan Junior To: "Andrew Burgess" Cc: "gdb-patches\@sourceware.org" Subject: Re: [PATCH] Failure to stop at duplicate breakpoints References: <505B31C2.5010203@broadcom.com> X-URL: http://www.redhat.com Date: Thu, 20 Sep 2012 18:40:00 -0000 In-Reply-To: <505B31C2.5010203@broadcom.com> (Andrew Burgess's message of "Thu, 20 Sep 2012 16:09:54 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2012-09/txt/msg00410.txt.bz2 On Thursday, September 20 2012, Andrew Burgess wrote: > When two breakpoints are created at the same location, one of them is > marked as a duplicate. When gdb inserts the breakpoints we only > really insert one breakpoint at any unique location. > > By creating duplicate breakpoints and deleting or disabling them in > the right order it is possible to get into a state where gdb has a > single breakpoint with a single location, but that location is marked > duplicate and so is never inserted, with the result we don't stop at > the breakpoint. > > Patch and test included below. Thanks for the patches, but your mail client messed with them, probably. They are malformed in several places. -- Sergio