From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id XmecBY7VbWB7cAAAWB0awg (envelope-from ) for ; Wed, 07 Apr 2021 11:53:50 -0400 Received: by simark.ca (Postfix, from userid 112) id 0950E1E965; Wed, 7 Apr 2021 11:53:50 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 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 4FF781E789 for ; Wed, 7 Apr 2021 11:53:49 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BEF7C3896C1A; Wed, 7 Apr 2021 15:53:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BEF7C3896C1A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1617810828; bh=+6qllXABzrGwDtIU5ev3vRle9XmI+5bbTEQWY2dSgOk=; 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=vRigWCuaf9UkV7NRGlQVLm6g9WYX0kFVh5ixrWjR5V/ExgEO+0AKWPDwv3/g7AN/B RGaLkj/MI2Pbq6va0/Cg+mlTb8mAyo/jmveCY3tkaNpWYWejOXmxF3pjsib6DyaTHi 303aHVr4ivld3QYWWIWdJbmcOewZdAI7Em9eDI8A= Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id BD1AA3896C1A for ; Wed, 7 Apr 2021 15:53:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org BD1AA3896C1A Received: from fencepost.gnu.org ([2001:470:142:3::e]:48877) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUAUw-00077f-SO; Wed, 07 Apr 2021 11:53:45 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4287 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lUAUw-0006Ca-AL; Wed, 07 Apr 2021 11:53:42 -0400 Date: Wed, 07 Apr 2021 18:53:43 +0300 Message-Id: <83o8eq9jlk.fsf@gnu.org> To: "Aktemur, Tankut Baris" In-Reply-To: (tankut.baris.aktemur@intel.com) Subject: Re: [PATCH 4/4] gdb/mi: add a '-b' flag to the '-break-insert' cmd to force the condition References: <30001cddf6183155c7355df3c74848881f2d80c4.1617806599.git.tankut.baris.aktemur@intel.com> <83pmz69l93.fsf@gnu.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: , From: Eli Zaretskii via Gdb-patches Reply-To: Eli Zaretskii Cc: gdb-patches@sourceware.org Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" > From: "Aktemur, Tankut Baris" > CC: "gdb-patches@sourceware.org" > Date: Wed, 7 Apr 2021 15:27:13 +0000 > > > > + The MI -break-insert and -dprintf-insert commands now support a > > > + '-b' flag to forcibly define a condition even when the condition > > > + is invalid at all locations of the breakpoint. This is equivalent > > > + to the '--force-condition' flag of the CLI's "break" command. > > > > By "invalid at all locations" did you mean "invalid for some of the > > locations"? IOW, does this flag handle the case when the condition is > > valid for some locations and invalid for others, or is it specifically > > for the case when the condition is invalid for _all_ the locations? > > It is specifically for all the locations. If there are some locations at > which the condition is valid, the breakpoint is accepted. There is no need > for the '-b' flag then. The locations at which the condition is valid are > disabled. Then how about simply accepting the condition by default in that case, without any need for a special flag? IOW, it makes little sense to me to accept the condition if it is _sometimes_ invalid, but not if it is _always_ invalid. It sounds like a gratuitous limitation. Am I missing something?