From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id d0SACdbcnWJhmgoAWB0awg (envelope-from ) for ; Mon, 06 Jun 2022 06:54:14 -0400 Received: by simark.ca (Postfix, from userid 112) id 192F61E221; Mon, 6 Jun 2022 06:54:14 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=ws4nAI5h; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id A443B1E143 for ; Mon, 6 Jun 2022 06:54:13 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4B2A83836677 for ; Mon, 6 Jun 2022 10:54:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4B2A83836677 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1654512853; bh=rO6HYWHG9txluXB7zqX8FAt1e8kO6uaGFgyTVycepWM=; h=Date:To:In-Reply-To:Subject:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=ws4nAI5humjBMrVN7VgLtM/YJnQOcs/EMWlR4CFlctfeEeQaakqZg4vS+gOBCBlF2 J8cwUAtz+0Y/U3vkgKxjgdepbqkIhsKMlwIsn4yJ5wcQyQW5f8UYkrUMUu1/0WeYSB 9zGs7oJu6glfGV+wM8ZfRq05ZmzxT+0aHCBovctQ= Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 0EF773858C54 for ; Mon, 6 Jun 2022 10:53:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0EF773858C54 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33894) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyAMo-0002Nl-6L; Mon, 06 Jun 2022 06:53:53 -0400 Received: from [87.69.77.57] (port=1569 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 1nyAMk-0004oN-NE; Mon, 06 Jun 2022 06:53:48 -0400 Date: Mon, 06 Jun 2022 13:53:36 +0300 Message-Id: <83k09u83m7.fsf@gnu.org> To: Philippe Waroquiers In-Reply-To: <20220606094504.744323-1-philippe.waroquiers@skynet.be> (message from Philippe Waroquiers via Gdb-patches on Mon, 6 Jun 2022 11:45:04 +0200) Subject: Re: [RFAv3] Show locno for 'multi location' breakpoint hit msg+conv var $bkptno $locno. References: <20220606094504.744323-1-philippe.waroquiers@skynet.be> 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: , From: Eli Zaretskii via Gdb-patches Reply-To: Eli Zaretskii Cc: gdb-patches@sourceware.org Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" > Date: Mon, 6 Jun 2022 11:45:04 +0200 > From: Philippe Waroquiers via Gdb-patches > > diff --git a/gdb/NEWS b/gdb/NEWS > index 960f90b4387..a5602deee2b 100644 > --- a/gdb/NEWS > +++ b/gdb/NEWS This part is OK. > +The @samp{$bkptno} and @samp{$locno} variables can typically be used > +in a breakpoint command list. > +(@pxref{Break Commands, ,Breakpoint Command Lists}). For example, as ^^ Two spaces there, please. > +part of the breakpoint command list, you can disable completely the > +encountered breakpoint using @samp{disable $bkptno} or disable the > +specific encountered breakpoint location using @samp{disable > +$bkptno.$locno}. It is better to use @kbd{..} for markup of commands that the user is supposed to type. > +Inside a command list, you can use the command > +@kbd{disable $bkptno} to disable the encountered breakpoint. > + > +If your breakpoint has several code locations, the command > +@kbd{disable $bkptno.$locno} will disable the specific breakpoint code > +location encountered. Yes, like you did here. The documentation parts are OK with these two nits fixed. Thanks.