From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32580 invoked by alias); 15 Jan 2006 22:23:32 -0000 Received: (qmail 32572 invoked by uid 22791); 15 Jan 2006 22:23:31 -0000 X-Spam-Check-By: sourceware.org Received: from tully.CS.Berkeley.EDU (HELO tully.CS.Berkeley.EDU) (128.32.153.227) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 15 Jan 2006 22:23:29 +0000 Received: from tully.CS.Berkeley.EDU (localhost [127.0.0.1]) by tully.CS.Berkeley.EDU (8.12.7/8.12.7/3.141592645) with ESMTP id k0FMNM7T017377; Sun, 15 Jan 2006 14:23:22 -0800 (PST) Received: from tully.CS.Berkeley.EDU (hilfingr@localhost) by tully.CS.Berkeley.EDU (8.12.7/8.12.7/Submit) with ESMTP id k0FMNMQ7017374; Sun, 15 Jan 2006 14:23:22 -0800 (PST) Message-Id: <200601152223.k0FMNMQ7017374@tully.CS.Berkeley.EDU> To: Cyrille Comar cc: gdb@sourceware.org Subject: Re: [RFC] multiple breakpoints from FILE:LINE In-Reply-To: Message from Cyrille Comar of "Sun, 15 Jan 2006 02:51:36 +0100." <43C9AAA8.2030605@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <17370.1137363801.1@tully.CS.Berkeley.EDU> Date: Sun, 15 Jan 2006 22:23:00 -0000 From: Paul Hilfinger Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-01/txt/msg00128.txt.bz2 Cyrille Comar writes: > I believe it would be worthwhile to have 2 different break commands: > - break > - break-multiple (or whatever other more appropriate name) > > break-multiple would have the semantics advocated by Daniel (break > automatically on all relevant locations) But then 'break', being the shorter and more familiar command name, would appear from a user's point of view to be the effective default. If you put a breakpoint in the middle of an inline function (or an Ada generic procedure or C++ template class method), it seems rather odd for the default to be "break on one at random" [well, OK; that's what it is in regular GDB now, but currently there is no alternative, so there is no choice about defaults]. So if you went the distinct- command route, you'd probably want 'break' and 'break-single' (er, or something), the latter being a seldom-chosen specialized command that would present a menu. Another alternative is a new settable variable. Paul Hilfinger