From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id CcN5AVZMg2l6ICgAWB0awg (envelope-from ) for ; Wed, 04 Feb 2026 08:40:38 -0500 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=HfBVBjTp; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id F35DD1E0E1; Wed, 04 Feb 2026 08:40:37 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED,RDNS_NONE autolearn=no autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (unknown [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 655BB1E08D for ; Wed, 04 Feb 2026 08:40:37 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id EE8A94BA23C7 for ; Wed, 4 Feb 2026 13:40:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EE8A94BA23C7 Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=HfBVBjTp Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) by sourceware.org (Postfix) with ESMTPS id 87A1A4BA2E0B for ; Wed, 4 Feb 2026 13:38:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 87A1A4BA2E0B Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=intel.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 87A1A4BA2E0B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=198.175.65.12 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1770212312; cv=none; b=D++CgmFiUVbmf2xUOd69BjInU2/dHfKvBd/i2M/2wTY7cEHCqtZRno0IH8zHLu3/kXH2+oamrpsqoHYzlTCfvmBpTUJ57RCa84OmW5HUDj5wgs9pDxU+dgwz+N9yNrxp9ww4Ji0j7x5Z4PfTLbmqZ1QUszf6c3+2Lu/KxKR9z8M= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1770212312; c=relaxed/simple; bh=TZI6eWlsrnEzizakkPNnXzuwwbUD8agPYpZMLuzGa8M=; h=DKIM-Signature:MIME-Version:From:To:Subject:Date:Message-Id: MIME-Version; b=m3dZvUmHesCNPh3mimKkT3zJUg5Nx5jHCyPKoPbxfcjvbJDZ2RulrLeCEp1CpjXokNOAMtdVhkiPVlsDR2ulFWQC271u81wAWpVayjvWTDZn88mt3qiHSkey4xiF0rZVbBkTVPyHnjc6oBKWFdwgXhD1tk9xeBgclKk44xFpNFc= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 87A1A4BA2E0B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1770212313; x=1801748313; h=from:to:subject:date:message-id:in-reply-to:references; bh=TZI6eWlsrnEzizakkPNnXzuwwbUD8agPYpZMLuzGa8M=; b=HfBVBjTpJ4Mb3G2dzyOsy9J/wadPyjCqYq2o2Mv5Bky3zyUzKeAXmcg2 xjtLxPQ9L44tSHKx3y+m+TtwilUusy1BAEB76eEFSjYnYU+4ttlqRZQHh fvzPPbxHC1ndbfsfZMoHqNzR9qHw80B3dHZbiQiY3XmN/qcjCaRARJKeH +dRD0L8KcwUv0eXGVHxA+/KyF7J5uQS28bPdiAe5MzRk7qeelOO87/5PO Xdxq+l+aplB1LJdAQ5lObRGhds+b49SyGtIAhp6MdGJo4/radRxa+8oV+ 1AkMqS7Mtg5+EbaK1kEkdQLdDS4PuAlPezd0dP9G7bPKCPsPT2v6D05MK g==; X-CSE-ConnectionGUID: selUB/u3QpeM9ng6ZF2j1A== X-CSE-MsgGUID: w0r2yLMYTqCUEp3a+FqfOQ== X-IronPort-AV: E=McAfee;i="6800,10657,11691"; a="82831919" X-IronPort-AV: E=Sophos;i="6.21,272,1763452800"; d="scan'208";a="82831919" Content-Type: multipart/mixed; boundary="===============0381688761142527469==" MIME-Version: 1.0 Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Feb 2026 05:38:31 -0800 X-CSE-ConnectionGUID: RJ584gclRxCNWIgEdvKXIQ== X-CSE-MsgGUID: zQtA9/UuSmOS4GdGU/2zlQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,272,1763452800"; d="scan'208";a="209460502" Received: from dut1865dg2frd.igk.intel.com (HELO localhost) ([10.211.179.243]) by orviesa010-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Feb 2026 05:38:31 -0800 From: Klaus Gerlicher To: gdb-patches@sourceware.org Subject: [PATCH v6 3/6] gdb, cli: pass the argument of a set command to its callback. Date: Wed, 4 Feb 2026 13:37:50 +0000 Message-Id: <20260204133753.547281-4-klaus.gerlicher@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260204133753.547281-1-klaus.gerlicher@intel.com> References: <20260204133753.547281-1-klaus.gerlicher@intel.com> MIME-Version: 1.0 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org --===============0381688761142527469== Content-Transfer-Encoding: 8bit From: Natalia Saiapova This might be useful, if some commands need to have a special case if run w/o arguments. I am going to use it in gdb: refine commands to control scheduler locking. to keep the old behaviour of the set scheduler-locking step which should set both set scheduler-locking step on set scheduler-locking replay step on To do this, the set-command needs to detect that it was issued without arguments and have a special handling for this. Without the special handling, the command set scheduler-locking step would set only set scheduler-locking step on Approved-By: Tom Tromey --- gdb/cli/cli-setshow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/cli/cli-setshow.c b/gdb/cli/cli-setshow.c index 7688da015de..f1f313a4cd0 100644 --- a/gdb/cli/cli-setshow.c +++ b/gdb/cli/cli-setshow.c @@ -455,7 +455,7 @@ do_set_command (const char *arg, int from_tty, struct cmd_list_element *c) error (_("gdb internal error: bad var_type in do_setshow_command")); } - c->func (NULL, from_tty, c); + c->func (arg, from_tty, c); if (notify_command_param_changed_p (option_changed, c)) { -- 2.34.1 --===============0381688761142527469== Content-Type: multipart/alternative; boundary="===============6121039401781000722==" MIME-Version: 1.0 Content-Disposition: inline --===============6121039401781000722== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Intel Deutschland GmbH Registered Address: Dornacher Stra=C3=9Fe 1, 85622 Feldkirchen, Germany Tel: +49 89 991 430, www.intel.de Managing Directors: Harry Demas, Jeffrey Schneiderman, Yin Chong Sorrell Chairperson of the Supervisory Board: Nicole Lau Registered Seat: Munich Commercial Register: Amtsgericht M=C3=BCnchen HRB 186928 --===============6121039401781000722== Content-Type: text/html; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable

Intel Deutschland GmbH

Registered Ad= dress: Dornacher Stra=C3=9Fe 1, 85622 Feldkirchen, Germany
Tel: +49 89 = 991 430, www.intel.de
Managing Directors: Harry Demas, Jeffrey Schneide= rman, Yin Chong Sorrell
Chairperson of the Supervisory Board: Nicole La= u
Registered Seat: Munich
Commercial Register: Amtsgericht M=C3=BCn= chen HRB 186928

--===============6121039401781000722==-- --===============0381688761142527469==--