From patchwork Mon Nov 25 05:26:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Marchi X-Patchwork-Id: 36179 Received: (qmail 61203 invoked by alias); 25 Nov 2019 05:33:34 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 61178 invoked by uid 89); 25 Nov 2019 05:33:33 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.5 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:1396 X-HELO: mail.efficios.com Received: from mail.efficios.com (HELO mail.efficios.com) (167.114.142.138) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 25 Nov 2019 05:33:32 +0000 Received: from localhost (ip6-localhost [IPv6:::1]) by mail.efficios.com (Postfix) with ESMTP id BFBFB347554 for ; Mon, 25 Nov 2019 00:27:20 -0500 (EST) Received: from mail.efficios.com ([IPv6:::1]) by localhost (mail02.efficios.com [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id fGSDTFnWM8_D; Mon, 25 Nov 2019 00:27:20 -0500 (EST) Received: from localhost (ip6-localhost [IPv6:::1]) by mail.efficios.com (Postfix) with ESMTP id 85AAC3474F5; Mon, 25 Nov 2019 00:27:17 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com 85AAC3474F5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=default; t=1574659637; bh=1FW7UdnsHcWFe8sPg+c1yMsZ9nD1mcmDvKlmGq9NR4Q=; h=From:To:Date:Message-Id:MIME-Version; b=e2PPOmU/rj8ixpFoZpYclfhp6SarrzD7mlkDhq9rI7suGBQt+Tgi20kLiT7TnQPqD Ah/3Nr50dEbtqZHluoL+4ye2EDGpEhpmVZ2dvgxtz4mJXPhbAOJTLD8xSTKJ/HVryH xGz0PShfnajzILcqWnN9EIOqayFKtEvG/Au8WMQEBZMeb/DkqNuq0lM80nFIjpOhtU W3K9XC6HT4QG+fVwC5BMgssr3i7nDNH3hf1qIDsZSN9UO8qff3XesRPH2JdedlFdRE apqMFMDXh5tBS4bnj9q51MKFxcy3irpqYI+Ho0Kcwd1q+8Ku0NmT5JC5uvF8RrwJdC 5FmvwIIn9uSMA== Received: from mail.efficios.com ([IPv6:::1]) by localhost (mail02.efficios.com [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id CpDwGBfQXg6o; Mon, 25 Nov 2019 00:27:17 -0500 (EST) Received: from smarchi-efficios.lan (unknown [192.222.164.54]) by mail.efficios.com (Postfix) with ESMTPSA id ED9903474AE; Mon, 25 Nov 2019 00:27:10 -0500 (EST) From: Simon Marchi To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH 08/15] Remove info_terminal_command declaration, make definition static Date: Mon, 25 Nov 2019 00:26:48 -0500 Message-Id: <20191125052655.22696-9-simon.marchi@efficios.com> In-Reply-To: <20191125052655.22696-1-simon.marchi@efficios.com> References: <20191125052655.22696-1-simon.marchi@efficios.com> MIME-Version: 1.0 The info_terminal_command declaration in inflow.h does not match the current definition. It is not needed anyway, as info_terminal_command is only used locally, so remove it and make the definition static. gdb/ChangeLog: * inferior.h (info_terminal_command): Remove declaration. * inflow.c (info_terminal_command): Make static. Change-Id: I22c3fcc44244e3cf877b5e27eff189af11c39503 --- gdb/inferior.h | 2 -- gdb/inflow.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/gdb/inferior.h b/gdb/inferior.h index 43f0417e6296..3bd9e8c3d747 100644 --- a/gdb/inferior.h +++ b/gdb/inferior.h @@ -159,8 +159,6 @@ extern void default_print_float_info (struct gdbarch *gdbarch, extern void child_terminal_info (struct target_ops *self, const char *, int); -extern void info_terminal_command (char *, int); - extern void child_terminal_ours (struct target_ops *self); extern void child_terminal_ours_for_output (struct target_ops *self); diff --git a/gdb/inflow.c b/gdb/inflow.c index 9b78301f254f..be9943e8a036 100644 --- a/gdb/inflow.c +++ b/gdb/inflow.c @@ -673,7 +673,7 @@ swap_terminal_info (inferior *a, inferior *b) std::swap (a->terminal_state, b->terminal_state); } -void +static void info_terminal_command (const char *arg, int from_tty) { target_terminal::info (arg, from_tty);