From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17640 invoked by alias); 6 Mar 2007 07:38:32 -0000 Received: (qmail 17631 invoked by uid 22791); 6 Mar 2007 07:38:32 -0000 X-Spam-Check-By: sourceware.org Received: from hb17.de (HELO ww17.hb17.de) (80.190.209.47) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 06 Mar 2007 07:38:29 +0000 Received: from insanenotebook (p57A280E8.dip0.t-ipconnect.de [87.162.128.232]) by ww17.hb17.de (ww17.hb17.de) with ESMTP id 009011FD815D; Tue, 6 Mar 2007 08:38:25 +0100 (CET) From: "Sascha" To: "'Michael Snyder'" Cc: "'Daniel Jacobowitz'" , References: <000001c75a51$cc99f0c0$02b2a8c0@insanenotebook> <20070227115524.GA5164@caradoc.them.org> <001501c75a91$8843c910$02b2a8c0@insanenotebook> <1173125452.29183.17.camel@localhost.localdomain> Subject: Re: Disabling breakpoints does not work if rejected from remotestub Date: Tue, 06 Mar 2007 07:38:00 -0000 Message-ID: <004401c75fc2$698386b0$02b2a8c0@insanenotebook> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <1173125452.29183.17.camel@localhost.localdomain> 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: 2007-03/txt/msg00080.txt.bz2 Hi >>However, the more serious error is that at this point, the "run" (or "step") command is aborted, returning to the gdb prompt, but without removing the breakpoints. The error handling code at this point ought to remove all of the breakpoints that have been inserted. I guess GDB does not have to remove the breakpoints at that point - as long as it will remember them later on. You simply have to compare the "DELETE BP1/BP2" section and the "DISABLE BP1/BP2" section in the log. _Deleting_ the breakpoints causes GDB to send the required "z0" (bp remove) packets for those breakpoints which have been inserted already. _Disabling_ the breakpoints does nothing. No "z0" packets were send to the stub. So I guess the fix is to make GDB send the required z0 packets for disabled breakpoints - just like it does for deleted breakpoints. Sascha