From patchwork Fri Jan 10 22:00:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Marchi X-Patchwork-Id: 37296 Received: (qmail 41387 invoked by alias); 10 Jan 2020 22:09: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 41372 invoked by uid 89); 10 Jan 2020 22:09:33 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.8 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; Fri, 10 Jan 2020 22:09:32 +0000 Received: from localhost (ip6-localhost [IPv6:::1]) by mail.efficios.com (Postfix) with ESMTP id 622F469610D for ; Fri, 10 Jan 2020 17:00:40 -0500 (EST) Received: from mail.efficios.com ([IPv6:::1]) by localhost (mail02.efficios.com [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id vIa9dKoOs4DG; Fri, 10 Jan 2020 17:00:40 -0500 (EST) Received: from localhost (ip6-localhost [IPv6:::1]) by mail.efficios.com (Postfix) with ESMTP id 1FA5E6960D6; Fri, 10 Jan 2020 17:00:37 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com 1FA5E6960D6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=default; t=1578693637; bh=IytmE1FOVj3zgLO+39QUs062bkYEavLZdfP4Ade2wL8=; h=From:To:Date:Message-Id:MIME-Version; b=TyLAaOfbq56UQAKRL9AlimLPVgSwQu+e24oBiTlaChpx7zsHs++ELf/HJFaz2X5FN xEbdLPBRamDpITf5FemfJLpCqgRWQBALBekq9V+A529MfFVgRdqdwvYXpodQteT94b gKmNV+Uhn1z/fvA/PuUCCH6P9EF1C1qVVOS++m+l+3v8Tm0BjwlBvuDfk386U4SQAV XqlWKTmJDnvOZMW8752xfrRU3o4dI3MQVAQl7M7/FWnMSFy7mrGEO7O8xmHoXs/+x1 +SGvn7MLKXB3EK5QtKdW0UdA5QTWDfPIYbi3nW9uupXGwL09y/+TCTpjFrIFwOoKgy 5QhxnNQYREh0g== Received: from mail.efficios.com ([IPv6:::1]) by localhost (mail02.efficios.com [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id NDnBK4DLpm72; Fri, 10 Jan 2020 17:00:37 -0500 (EST) Received: from smarchi-efficios.internal.efficios.com (192-222-181-218.qc.cable.ebox.net [192.222.181.218]) by mail.efficios.com (Postfix) with ESMTPSA id C77896960AC; Fri, 10 Jan 2020 17:00:35 -0500 (EST) From: Simon Marchi To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH v2 5/7] gdbserver: make some functions static in linux-x86-low.c Date: Fri, 10 Jan 2020 17:00:25 -0500 Message-Id: <20200110220027.26450-6-simon.marchi@efficios.com> In-Reply-To: <20200110220027.26450-1-simon.marchi@efficios.com> References: <20200110220027.26450-1-simon.marchi@efficios.com> MIME-Version: 1.0 These functions are only used in this file, so should be static. Change-Id: I703da41867735aefadd49140e80cd60f6ab9ad39 --- gdb/gdbserver/linux-x86-low.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/gdb/gdbserver/linux-x86-low.c b/gdb/gdbserver/linux-x86-low.c index 047eb1376abc..09ec22ff678f 100644 --- a/gdb/gdbserver/linux-x86-low.c +++ b/gdb/gdbserver/linux-x86-low.c @@ -961,7 +961,7 @@ static struct regs_info i386_linux_regs_info = &x86_regsets_info }; -const struct regs_info * +static const struct regs_info * x86_linux_regs_info (void) { #ifdef __x86_64__ @@ -1970,7 +1970,7 @@ amd64_emit_void_call_2 (CORE_ADDR fn, int arg1) "pop %rax"); } -void +static void amd64_emit_eq_goto (int *offset_p, int *size_p) { EMIT_ASM (amd64_eq, @@ -1990,7 +1990,7 @@ amd64_emit_eq_goto (int *offset_p, int *size_p) *size_p = 4; } -void +static void amd64_emit_ne_goto (int *offset_p, int *size_p) { EMIT_ASM (amd64_ne, @@ -2010,7 +2010,7 @@ amd64_emit_ne_goto (int *offset_p, int *size_p) *size_p = 4; } -void +static void amd64_emit_lt_goto (int *offset_p, int *size_p) { EMIT_ASM (amd64_lt, @@ -2030,7 +2030,7 @@ amd64_emit_lt_goto (int *offset_p, int *size_p) *size_p = 4; } -void +static void amd64_emit_le_goto (int *offset_p, int *size_p) { EMIT_ASM (amd64_le, @@ -2050,7 +2050,7 @@ amd64_emit_le_goto (int *offset_p, int *size_p) *size_p = 4; } -void +static void amd64_emit_gt_goto (int *offset_p, int *size_p) { EMIT_ASM (amd64_gt, @@ -2070,7 +2070,7 @@ amd64_emit_gt_goto (int *offset_p, int *size_p) *size_p = 4; } -void +static void amd64_emit_ge_goto (int *offset_p, int *size_p) { EMIT_ASM (amd64_ge, @@ -2605,7 +2605,7 @@ i386_emit_void_call_2 (CORE_ADDR fn, int arg1) } -void +static void i386_emit_eq_goto (int *offset_p, int *size_p) { EMIT_ASM32 (eq, @@ -2630,7 +2630,7 @@ i386_emit_eq_goto (int *offset_p, int *size_p) *size_p = 4; } -void +static void i386_emit_ne_goto (int *offset_p, int *size_p) { EMIT_ASM32 (ne, @@ -2656,7 +2656,7 @@ i386_emit_ne_goto (int *offset_p, int *size_p) *size_p = 4; } -void +static void i386_emit_lt_goto (int *offset_p, int *size_p) { EMIT_ASM32 (lt, @@ -2682,7 +2682,7 @@ i386_emit_lt_goto (int *offset_p, int *size_p) *size_p = 4; } -void +static void i386_emit_le_goto (int *offset_p, int *size_p) { EMIT_ASM32 (le, @@ -2708,7 +2708,7 @@ i386_emit_le_goto (int *offset_p, int *size_p) *size_p = 4; } -void +static void i386_emit_gt_goto (int *offset_p, int *size_p) { EMIT_ASM32 (gt, @@ -2734,7 +2734,7 @@ i386_emit_gt_goto (int *offset_p, int *size_p) *size_p = 4; } -void +static void i386_emit_ge_goto (int *offset_p, int *size_p) { EMIT_ASM32 (ge,