Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Gerlicher, Klaus" <klaus.gerlicher@intel.com>
To: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: RE: [PATCH v6 2/6] gdb, cli: remove left-over code from "set_logging_on".
Date: Wed, 4 Feb 2026 14:13:07 +0000	[thread overview]
Message-ID: <DM3PPFD7E67F036725297FCCFC94C8A3922E898A@DM3PPFD7E67F036.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20260204133753.547281-3-klaus.gerlicher@intel.com>

[-- Attachment #1: Type: text/plain, Size: 1998 bytes --]

I think the approved by was accidentally added in this patch. Please ignore.

Sorry
Klaus

> -----Original Message-----
> From: Klaus Gerlicher <klaus.gerlicher@intel.com>
> Sent: Wednesday, February 4, 2026 2:38 PM
> To: gdb-patches@sourceware.org
> Subject: [PATCH v6 2/6] gdb, cli: remove left-over code from
> "set_logging_on".
> 
> 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 c00c6bf0488..2ba96e55dc3 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);
>  }
> 
> --
> 2.34.1


[-- Attachment #2.1: Type: text/plain, Size: 329 bytes --]

Intel Deutschland GmbH
Registered Address: Dornacher Straße 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ünchen HRB 186928

[-- Attachment #2.2: Type: text/html, Size: 387 bytes --]

  reply	other threads:[~2026-02-04 14:13 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-04 13:37 [PATCH v6 0/6] gdb: refine scheduler locking settings Klaus Gerlicher
2026-02-04 13:37 ` [PATCH v6 1/6] gdb: use schedlock_applies in user_visible_resume_ptid Klaus Gerlicher
2026-02-04 13:37 ` [PATCH v6 2/6] gdb, cli: remove left-over code from "set_logging_on" Klaus Gerlicher
2026-02-04 14:13   ` Gerlicher, Klaus [this message]
2026-02-04 13:37 ` [PATCH v6 3/6] gdb, cli: pass the argument of a set command to its callback Klaus Gerlicher
2026-02-04 13:37 ` [PATCH v6 4/6] gdb: change the internal representation of scheduler locking Klaus Gerlicher
2026-02-04 13:37 ` [PATCH v6 5/6] gdb: refine commands to control " Klaus Gerlicher
2026-02-04 14:25   ` Eli Zaretskii
2026-02-04 13:37 ` [PATCH v6 6/6] gdb: add eval option to lock the scheduler during infcalls Klaus Gerlicher
2026-02-04 14:22   ` Eli Zaretskii
2026-02-17  9:03 ` [PATCH v6 0/6] gdb: refine scheduler locking settings Gerlicher, Klaus
2026-03-03  8:15   ` Gerlicher, Klaus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DM3PPFD7E67F036725297FCCFC94C8A3922E898A@DM3PPFD7E67F036.namprd11.prod.outlook.com \
    --to=klaus.gerlicher@intel.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox