From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id eL0HO4z29mKv9CUAWB0awg (envelope-from ) for ; Fri, 12 Aug 2022 20:55:40 -0400 Received: by simark.ca (Postfix, from userid 112) id EFA861E5EA; Fri, 12 Aug 2022 20:55:40 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=NdQPu+rj; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (server2.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 A12B91E13B for ; Fri, 12 Aug 2022 20:55:40 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2B82B3857BBC for ; Sat, 13 Aug 2022 00:55:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2B82B3857BBC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1660352140; bh=ZBf0L05v5Z2deJmvTCpB0laoGfe2OXx6FC5tI57A30k=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=NdQPu+rjouRvD93Nb1WYNN0fQbQ3OuHlKkKKIjf8GAkTh5kwbC7EDESkgbPxvVqvI vqvEZKNFxroMobl+b/oMv6Rtd2gEsqb0mpa5uHTFgGs0DqMU/xLS9KQWXFPEy99BII Lt4HlF1CbXT7eCztNuR6OnmoEEg71I0x2zD8eCTM= Received: from mail-io1-xd31.google.com (mail-io1-xd31.google.com [IPv6:2607:f8b0:4864:20::d31]) by sourceware.org (Postfix) with ESMTPS id 7F4133858D28 for ; Sat, 13 Aug 2022 00:54:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7F4133858D28 Received: by mail-io1-xd31.google.com with SMTP id x64so2089528iof.1 for ; Fri, 12 Aug 2022 17:54:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=ZBf0L05v5Z2deJmvTCpB0laoGfe2OXx6FC5tI57A30k=; b=SD2YhfLYwjhWh6xdahn6f5FpK7p5y9ZKWxa78YpzGbLGzsXPdWQVE4iquEjOd/Max4 fEIpOfFpJnND1HaMNkE1MYi3oaIXHt4Wb1YcOLA8F5LhuCmFcCRo38yi5YadUSVmYxYd m28xVeYsewftr18y5PoWT03pe/YLWR80xwdhbrFdZ4AYSkI4o5dCu8QWVcZyDjv2TQHA S4yw7u1AmZCDehII0BjLXdIye1VLiLSiy/hNmRDHv+WSCwvCJ2vkWTD+enVWRK55Ub4P n8a0Yst64N09dol/izhKRDutqbFNpRGzY0s8EJnmKWe0OoiXlZyovvoxeR6GptyWlx47 Ai6Q== X-Gm-Message-State: ACgBeo0geZ18HpfBtgghzI9uC/pTtWhJ7Myc8qC9p3V29Lhjz+v8sbrH sBHzFlpIbNCdiX22ehccDA+JA4f6PELTlA== X-Google-Smtp-Source: AA6agR4xAUTWxGkLFKCyboO+RvEe2PbXw7HaC9oZVETVt7lq1RTbf6p8gyR82jF8Glp7vXsDHIOo3A== X-Received: by 2002:a5e:9306:0:b0:684:ac3f:64fd with SMTP id k6-20020a5e9306000000b00684ac3f64fdmr2593242iom.83.1660352088790; Fri, 12 Aug 2022 17:54:48 -0700 (PDT) Received: from murgatroyd.Home (71-211-185-228.hlrn.qwest.net. [71.211.185.228]) by smtp.gmail.com with ESMTPSA id p17-20020a056638217100b00343455007f7sm494366jak.110.2022.08.12.17.54.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Aug 2022 17:54:48 -0700 (PDT) To: gdb-patches@sourceware.org Subject: [PATCH 06/14] Remove two unused members from mi_interp Date: Fri, 12 Aug 2022 18:54:34 -0600 Message-Id: <20220813005442.4163512-7-tromey@adacore.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220813005442.4163512-1-tromey@adacore.com> References: <20220813005442.4163512-1-tromey@adacore.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: Tom Tromey via Gdb-patches Reply-To: Tom Tromey Cc: Tom Tromey Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" These members of mi_interp aren't used and can be removed. --- gdb/mi/mi-interp.c | 1 - gdb/mi/mi-interp.h | 8 ++------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/gdb/mi/mi-interp.c b/gdb/mi/mi-interp.c index 6633a7fa0a8..ee270c7c9d2 100644 --- a/gdb/mi/mi-interp.c +++ b/gdb/mi/mi-interp.c @@ -1297,7 +1297,6 @@ mi_interp::set_logging (ui_file_up logfile, bool logging_redirect, } mi->raw_stdout = logging_redirect ? logfile_p : tee; - mi->raw_stdlog = debug_redirect ? logfile_p : tee; } else { diff --git a/gdb/mi/mi-interp.h b/gdb/mi/mi-interp.h index adf6eaffef4..d89439f54c5 100644 --- a/gdb/mi/mi-interp.h +++ b/gdb/mi/mi-interp.h @@ -52,14 +52,10 @@ class mi_interp final : public interp /* Raw console output. */ struct ui_file *raw_stdout; - /* Raw logfile output. */ - struct ui_file *raw_stdlog; - - /* Save the original value of raw_stdout and raw_stdlog here when logging, and - the file which we need to delete, so we can restore correctly when + /* Save the original value of raw_stdout here when logging, and the + file which we need to delete, so we can restore correctly when done. */ struct ui_file *saved_raw_stdout; - struct ui_file *saved_raw_stdlog; struct ui_file *saved_raw_file_to_delete; -- 2.34.1