From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4286 invoked by alias); 13 Nov 2007 20:19:42 -0000 Received: (qmail 4276 invoked by uid 22791); 13 Nov 2007 20:19:42 -0000 X-Spam-Check-By: sourceware.org Received: from zigzag.lvk.cs.msu.su (HELO zigzag.lvk.cs.msu.su) (158.250.17.23) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 13 Nov 2007 20:19:39 +0000 Received: from Debian-exim by zigzag.lvk.cs.msu.su with spam-scanned (Exim 4.50) id 1Is2EL-00058F-Vy for gdb@sources.redhat.com; Tue, 13 Nov 2007 23:19:35 +0300 Received: from localhost ([127.0.0.1] helo=ip6-localhost) by zigzag.lvk.cs.msu.su with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.50) id 1Is2E7-00057a-Vf; Tue, 13 Nov 2007 23:19:16 +0300 From: Vladimir Prus To: Nick Roberts Subject: Re: Multiple breakpoint locations Date: Tue, 13 Nov 2007 20:19:00 -0000 User-Agent: KMail/1.9.6 Cc: gdb@sources.redhat.com References: <18233.63439.953202.586908@kahikatea.snap.net.nz> <18234.1121.556841.49775@kahikatea.snap.net.nz> In-Reply-To: <18234.1121.556841.49775@kahikatea.snap.net.nz> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200711132319.11983.ghost@cs.msu.su> 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-11/txt/msg00104.txt.bz2 On Tuesday 13 November 2007 23:09:05 Nick Roberts wrote: > > > (gdb) d 1.1 > > > warning: bad breakpoint number at or near '1.1' > > > > Well, you can't really delete a location -- if breakpoint expression > > corresponds to 20 addresses, that's the way it is -- you cannot delete > > some of those addresses from the program ;-) > > It's not immediately obvious, at least to me, so I think this should be > documented. Also I think error should be used for the message instead of > warning as the requested task is not performed. The message could be more > helpful too: > > (gdb) d 1.1 > This breakpoint cannot be deleted on its own. Indeed, the error message could be better. Though it would require each breakpoint-related function to be enhanced to recognize "N.M" and say it's not appropriate here. > > > 2) I can enable/disable 1 and this appears to enable/disable all the > > > locations. > > > Perhap this could be documented in the manual. > > > > Well yes. Patches welcome ;-) > > I don't want to detract from the fact that you have contributed a major > patch but I think you should document your own changes. This is also a > good idea because you understand the changes best. I've documented them, but you're finding the documentation not good ;-) Basically, as a practical matter it might take me a long time to get to any doc edits. - Volodya