| Message ID | 20251213143709.301799-3-christina.schimpe@intel.com |
|---|---|
| State | New |
| Headers |
Return-Path: <gdb-patches-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id D92794BA2E34 for <patchwork@sourceware.org>; Sat, 13 Dec 2025 14:38:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D92794BA2E34 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=AbrRiuZQ X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by sourceware.org (Postfix) with ESMTPS id 875C94BA2E30 for <gdb-patches@sourceware.org>; Sat, 13 Dec 2025 14:37:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 875C94BA2E30 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 875C94BA2E30 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=198.175.65.10 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1765636659; cv=none; b=xCJTqatZ2AA8j6pG1xgysKHgiGmVF1AiwZne/jsp4AAYi4ukzOdzA29vdNRTRy+TOt2mF/oDnqTiHbU9B4DURc84AtFhH7CxXyQZ3s5zx8Op54AVCVA0dV55azcTLS9VdbMLpmqfIRznX8vg306O+aYAFRvMhgYWaDjCZKEZ8ec= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1765636659; c=relaxed/simple; bh=sacGQ+Wr6CnRRfuzYTwERCnXkHJE3eGRf8c6Wx5uw0U=; h=DKIM-Signature:MIME-Version:From:To:Subject:Date:Message-Id: MIME-Version; b=V7KKUYyBl59xF4BcvKiPC5FZ5jeP4OQJtStLbV7WXNdMKvtqyIQxFyagu6qjw4kDXPd3K2mt2Xptau4rAN7t/A82M/GodImF8hO92AvbaTE6ANjh9sVz5VpdU7h6wsvYYK3Ldj4G/rx8EO1eloo9XggHhvxPFPhdTB1Ux4qsAHo= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 875C94BA2E30 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1765636660; x=1797172660; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=sacGQ+Wr6CnRRfuzYTwERCnXkHJE3eGRf8c6Wx5uw0U=; b=AbrRiuZQYKC8c7zfVZ8YgazcTUsIdFttY/biwWb9er3v9GM+nHdTy0ZQ 8pZ96ZntBhvIuOvSlzAriBpT5EDykpwTCcRsFgIh4Uit4j6xtR6Q4NmCY va5Q7lJqWuOZi8H+lfBg2cpddG60DHW3MZc1vF1/SZWeoyvhavPxujPiP zajU8Mi1Coe0Uv45ALvcnZjS8h9aaKSEEePuiokFmnrAvVI5qXKby/I80 2E4NjaMYy4Fd0b/HkMGITq9QeY8EZR0i3VrITuIRcjXKOqpNXp+IWOPL9 w2SfM8/i7cOjxrPa3ef1IDoKlrdbA91Z01I/kLaTW6AChFkNk7JXByWQL Q==; X-CSE-ConnectionGUID: ekxOhfCdRs2kh2wvTEyZBA== X-CSE-MsgGUID: T13LAaUURbmXUxT/GU1dTg== X-IronPort-AV: E=McAfee;i="6800,10657,11641"; a="85020325" X-IronPort-AV: E=Sophos;i="6.21,146,1763452800"; d="scan'208";a="85020325" Content-Type: multipart/mixed; boundary="===============3123317586925750833==" MIME-Version: 1.0 Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Dec 2025 06:37:40 -0800 X-CSE-ConnectionGUID: zX8FyAuOTVWedphRmdnPQw== X-CSE-MsgGUID: VrXO3KAYRwGniURoHHROBw== X-ExtLoop1: 1 Received: from gkldtt-dev-004.igk.intel.com (HELO localhost) ([10.123.221.202]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Dec 2025 06:37:38 -0800 From: Christina Schimpe <christina.schimpe@intel.com> To: gdb-patches@sourceware.org Cc: klaus.gerlicher@intel.com, guinevere@redhat.com Subject: [PATCH v4 2/6] gdb, cli: remove left-over code from "set_logging_on". Date: Sat, 13 Dec 2025 14:37:05 +0000 Message-Id: <20251213143709.301799-3-christina.schimpe@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20251213143709.301799-1-christina.schimpe@intel.com> References: <20251213143709.301799-1-christina.schimpe@intel.com> MIME-Version: 1.0 X-Spam-Status: No, score=-10.2 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, HTML_MESSAGE, RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED, SPF_HELO_NONE, SPF_NONE, TXREP, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list <gdb-patches.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=subscribe> Errors-To: gdb-patches-bounces~patchwork=sourceware.org@sourceware.org |
| Series |
Refinement of scheduler-locking settings
|
|
Commit Message
Christina Schimpe
Dec. 13, 2025, 2:37 p.m. UTC
From: Natalia Saiapova <natalia.saiapova@intel.com>
This is a refactoring. Remove the left-over code, which rewrites
the logging filename in "set logging on" command.
The code became unused after the deprecation of "set logging (on|off)"
command. Before the deprecation, the command could also take a file
name and rewrite the logging file, e.g.:
(gdb) set logging on lalala
Copying output to lalala.
Copying debug output to lalala.
After the command was deprecated and reimplemented as an alias to "set
logging enable on", additional input after "on" became invalid:
(gdb) set logging on lalala
Warning: 'set logging on', an alias for the command 'set logging enabled', is deprecated.
Use 'set logging enabled on'.
"on" or "off" expected.
(gdb) set logging on lalala
"on" or "off" expected.
(gdb) set logging enable on lalala
"on" or "off" expected.
(gdb) set logging enable on
Copying output to gdb.txt.
Copying debug output to gdb.txt.
Approved-By: Tom Tromey <tom@tromey.com>
---
gdb/cli/cli-logging.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/gdb/cli/cli-logging.c b/gdb/cli/cli-logging.c index 9727b5a3538..97e45765022 100644 --- a/gdb/cli/cli-logging.c +++ b/gdb/cli/cli-logging.c @@ -159,11 +159,6 @@ handle_redirections (int from_tty) static void set_logging_on (const char *args, int from_tty) { - const char *rest = args; - - if (rest && *rest) - logging_filename = rest; - handle_redirections (from_tty); }