From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 25D723858D1E for ; Sun, 17 Apr 2022 17:55:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 25D723858D1E Received: from fencepost.gnu.org ([2001:470:142:3::e]:54432) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ng97h-0005Jx-Px; Sun, 17 Apr 2022 13:55:45 -0400 Received: from [87.69.77.57] (port=1271 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ng97P-0007wE-3n; Sun, 17 Apr 2022 13:55:44 -0400 Date: Sun, 17 Apr 2022 20:55:14 +0300 Message-Id: <83a6cjy4ql.fsf@gnu.org> From: Eli Zaretskii To: Philippe Waroquiers Cc: gdb-patches@sourceware.org In-Reply-To: (message from Philippe Waroquiers on Sun, 17 Apr 2022 18:27:54 +0200) Subject: Re: [RFA] Show locno for 'multi location' breakpoint hit msg+conv var $bkptno $locno. References: <20220417155311.3487509-1-philippe.waroquiers@skynet.be> <83h76ry9eo.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=1.7 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_BARRACUDACENTRAL, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Apr 2022 17:55:48 -0000 > From: Philippe Waroquiers > Cc: gdb-patches@sourceware.org > Date: Sun, 17 Apr 2022 18:27:54 +0200 > > > Thanks. I think this should be an optional feature. Not everyone is > > interested in the particular location that breaks. Having to disable > > the breakpoints by locations is definitely an annoyance. > > For the GDB CLI, when the above message is displayed,  > the user can decide to type > disable 1 > or > disable 1.2 > or can define aliases such as > alias bdisable = disable $bkptno > alias ldisable = disable $bkptno.$locno > to disable the complete breakpoint or only the specific location. This was not clear from the description. I think we should make it clear in the manual. > I might submit a later patch to define the above aliases by default, > so that disabling the last breakpoint or location will imply only to > type 'bd' or 'ld'. > > Similarly, a front end using MI will (by default) just skip the new locno field. > So, I am not sure to understand what is the annoyance. I'm not sure everyone will want to see the likes of Thread 1 "foobar" hit breakpoint 10.42, some_func () at ... But that's MO; I'd be interested in opinions of others.