From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 432 invoked by alias); 27 Feb 2007 09:29:56 -0000 Received: (qmail 422 invoked by uid 22791); 27 Feb 2007 09:29:55 -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, 27 Feb 2007 09:29:46 +0000 Received: from insanenotebook (p57A2B9F2.dip0.t-ipconnect.de [87.162.185.242]) by ww17.hb17.de (ww17.hb17.de) with ESMTP id 74BEE1055F for ; Tue, 27 Feb 2007 10:29:43 +0100 (CET) From: "Sascha" To: Subject: Disabling breakpoints does not work if rejected from remote stub Date: Tue, 27 Feb 2007 11:55:00 -0000 Message-ID: <000001c75a51$cc99f0c0$02b2a8c0@insanenotebook> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 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-02/txt/msg00267.txt.bz2 Hi, I guess the following problem is a bug, but I'm not sure: I have a remote stub which only allows two breakpoints. If GDB tries to insert another breakpoint the Z0 (yes, I only use Z0) packet will get rejected with an error code. So when I have three breakpoints... 1: 0x100000 2: 0x200000 3: 0x300000 The third will be rejected. GDB won't resume and report an error. That's ok. Z0,0x10000.... OK Z0,0x20000.... OK Z0,0x30000.... REJECTED (ENN) Alright. Removing ONE (no matter which) of the breakpoints will fix the situation. If BP3 gets deleted GDB simply won't try to insert BP3 any more. If BP1/BP2 gets deleted, GDB will remove this breakpoint (z0 packet) and insert BP3 instead. GDB is able to resume now. NOW THE PROBLEM: Disabling a breakpoint does not have the same effect. If I disable BP3 GDB simply won't try to insert BP3 any more (like before). But when I disable BP1/BP2, GDB will still try to insert BP3 without removing BP1/BP2 first. So even if all breakpoints except BP3 have been disabled, GDB will still try to insert BP3 without removing the other (already inserted) breakpoints first. GDB does not send the required z0 packets BEFORE trying the Z0 packet. I had a look at breakpoints.c but I'm still not sure why this happens. I'd appreciate any advice. Thanks. Sascha