From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 69054 invoked by alias); 3 Oct 2017 16:06:30 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 69043 invoked by uid 89); 3 Oct 2017 16:06:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1081, HContent-Transfer-Encoding:8bit X-HELO: smtp.eu.adacore.com Received: from mel.act-europe.fr (HELO smtp.eu.adacore.com) (194.98.77.210) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 03 Oct 2017 16:06:29 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id CA4748139A for ; Tue, 3 Oct 2017 18:06:26 +0200 (CEST) Received: from smtp.eu.adacore.com ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Bd2KZxZG0sZj for ; Tue, 3 Oct 2017 18:06:26 +0200 (CEST) Received: from dhcp-guest-31.act-europe.fr (dhcp-guest-31.act-europe.fr [10.10.127.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.eu.adacore.com (Postfix) with ESMTPSA id B44408152A for ; Tue, 3 Oct 2017 18:06:26 +0200 (CEST) Subject: Re: [RFA v3] enable/disable sub breakpoint range To: gdb-patches@sourceware.org References: <83lgks1e1h.fsf@gnu.org> From: Xavier Roirand Message-ID: Date: Tue, 03 Oct 2017 16:06:00 -0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2017-10/txt/msg00052.txt.bz2 Le 10/3/17 à 6:02 PM, Pedro Alves a écrit : > On 10/03/2017 03:50 PM, Eli Zaretskii wrote: >>> From: Xavier Roirand >>> Date: Tue, 3 Oct 2017 12:26:49 +0200 >>> >>> This patch allows enable/disable a range of breakpoint locations >>> using syntax: >>> >>> .- >>> >>> with inclusive last_location_number. >>> >>> For instance, if adding a breakpoint to foo() generates 5 breakpoint >>> locations from 1.1 to 1.5 then it's now possible to enable/disable >>> only location breakpoint 1.3 to location breakpoint 1.5 >>> (so 1.3, 1.4 and 1.5) using syntax: >>> >>> enable 1.3-5 or disable 1.3-5 >> >> What if I have, in addition to the 1.1-1.5 breakpoints also >> breakpoints 4, 5, and 6 -- how do I disable 1.3, 1.4, 1.5, 4, and 5? >> Do I have to say something like "disable 1.3-5.0"? > > I hope not. Supposedly you could do it with: > > (gdb) delete 1.3 1.4 1.5 4 5 > > or: > > (gdb) delete 1-5 4-5 > Yes that's how it is supposed to be used.