From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1299 invoked by alias); 1 Jun 2006 17:21:57 -0000 Received: (qmail 1287 invoked by uid 22791); 1 Jun 2006 17:21:56 -0000 X-Spam-Check-By: sourceware.org Received: from yosemite.airs.com (HELO yosemite.airs.com) (205.217.158.180) by sourceware.org (qpsmtpd/0.31) with SMTP; Thu, 01 Jun 2006 17:21:55 +0000 Received: (qmail 13684 invoked from network); 1 Jun 2006 17:19:31 -0000 Received: from romy.inter.net.il (192.114.186.66) by yosemite.airs.com with SMTP; 1 Jun 2006 17:19:31 -0000 Received: from HOME-C4E4A596F7 (IGLD-80-230-229-230.inter.net.il [80.230.229.230]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id ETM56956 (AUTH halo1); Thu, 1 Jun 2006 20:17:46 +0300 (IDT) Date: Thu, 01 Jun 2006 17:21:00 -0000 Message-Id: From: Eli Zaretskii To: Nathan Sidwell CC: gdb-patches@sourceware.org In-reply-to: <447EE9A8.4050800@codesourcery.com> (message from Nathan Sidwell on Thu, 01 Jun 2006 14:20:40 +0100) Subject: Re: patch for invalid hw breakpoints Reply-to: Eli Zaretskii References: <447EE9A8.4050800@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-06/txt/msg00003.txt.bz2 [Patches should be sent to gdb-patches,; I redirected the thread.] > Date: Thu, 01 Jun 2006 14:20:40 +0100 > From: Nathan Sidwell > > I have a remote target w/o hw watchpoint support. I set a watchpoint only to > find that I then get an undeletable watchpoint as we try and remove it. > > The bug is that when insert_bp_location fails to insert one of the watched > addresses for a watch expression it then goes and tries to remove all the > addresses of that watched expression, rather than just the previous fragments of > the expression. And why is that a problem? I'm sorry, but I couldn't figure out from your description why removing a watch for an expression for which insertion didn't happen causes trouble. IIRC, it is supposed to silently fail, and its only effect should be to cause GDB to be happy that the watchpoint was completely removed. What am I missing?