From patchwork Mon Nov 25 05:26:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Marchi X-Patchwork-Id: 36175 Received: (qmail 49843 invoked by alias); 25 Nov 2019 05:27:25 -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 49761 invoked by uid 89); 25 Nov 2019 05:27:25 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.0 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= 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:27:23 +0000 Received: from localhost (ip6-localhost [IPv6:::1]) by mail.efficios.com (Postfix) with ESMTP id 2BF4B347573 for ; Mon, 25 Nov 2019 00:27:21 -0500 (EST) Received: from mail.efficios.com ([IPv6:::1]) by localhost (mail02.efficios.com [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id IygGcJC-13aN; Mon, 25 Nov 2019 00:27:21 -0500 (EST) Received: from localhost (ip6-localhost [IPv6:::1]) by mail.efficios.com (Postfix) with ESMTP id DE324347522; Mon, 25 Nov 2019 00:27:17 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com DE324347522 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=default; t=1574659637; bh=InQw9Ej8R3DASdjxtgdzyJhnpgZpwXJHPRULGbGcuOE=; h=From:To:Date:Message-Id:MIME-Version; b=JHBee5OZRmyYBV0Ex0JNtaiicKPyowOgcZBo8wE37nfQwQho7KbYA+vCsxOfUWdsY OtFCpUvwX90pRqaNrS+Ik8G0EJTZgNC0ZIV4Rc6mwNubNU24T4/d+Q+DdlIULHGh7T RWqM0j1YDNGoR1FzfcA7Se+yCH2gLwDaMy6q+GK413lnuH6AOjLccjc7ExrNEqle6Q xGjybzWnSUI2S3JwS3n0tfE/1IGHGz2h70h715oz3keHcS7HgGCWvl2B6Yz55vfMwN SkQP7kEW2kTz4PUEnn1J9mA4LjQLABTizuZCzw7r8avR2v1/QngxgNSA+gcERi8TQe kfZ6KnzHd4OmA== Received: from mail.efficios.com ([IPv6:::1]) by localhost (mail02.efficios.com [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id Ib4lduBM4QLi; 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 01C913474BB; Mon, 25 Nov 2019 00:27:11 -0500 (EST) From: Simon Marchi To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH 13/15] Remove simulator_command declaration, make static Date: Mon, 25 Nov 2019 00:26:53 -0500 Message-Id: <20191125052655.22696-14-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 simulator_command function is not used outside its file, so make it static. Remove the declaration, which is not needed and not even in sync with the definition. gdb/ChangeLog: * remote-sim.c (simulator_command): Make static, remove declaration. Change-Id: I40bd1e3662f849c4c9970443931ab9ee0ccccea1 --- gdb/remote-sim.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index 8f86f5d3132e..e49d5d67b5c9 100644 --- a/gdb/remote-sim.c +++ b/gdb/remote-sim.c @@ -69,8 +69,6 @@ static void gdb_os_evprintf_filtered (host_callback *, const char *, va_list); static void gdb_os_error (host_callback *, const char *, ...) ATTRIBUTE_NORETURN; -void simulator_command (char *args, int from_tty); - /* Naming convention: sim_* are the interface to the simulator (see remote-sim.h). @@ -1162,7 +1160,7 @@ gdbsim_target::mourn_inferior () /* Pass the command argument through to the simulator verbatim. The simulator must do any command interpretation work. */ -void +static void simulator_command (const char *args, int from_tty) { struct sim_inferior_data *sim_data;