Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Simon Marchi <simon.marchi@efficios.com>
To: gdb-patches@sourceware.org
Cc: Simon Marchi <simon.marchi@efficios.com>
Subject: [PATCH v2 5/7] gdbserver: make some functions static in linux-x86-low.c
Date: Fri, 10 Jan 2020 22:09:00 -0000	[thread overview]
Message-ID: <20200110220027.26450-6-simon.marchi@efficios.com> (raw)
In-Reply-To: <20200110220027.26450-1-simon.marchi@efficios.com>

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,
-- 
2.24.1


  parent reply	other threads:[~2020-01-10 22:09 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-10 22:00 [PATCH v2 0/7] Enable -Wmissing-declarations diagnostic Simon Marchi
2020-01-10 22:00 ` [PATCH v2 2/7] gdb: add declaration to Python init function Simon Marchi
2020-01-10 22:00 ` [PATCH v2 4/7] gdbserver: include gdbsupport/common-inferior.h in inferiors.c Simon Marchi
2020-01-10 22:00 ` [PATCH v2 3/7] gdbserver: include hostio.h in hostio-errno.c Simon Marchi
2020-01-10 22:00 ` [PATCH v2 7/7] Enable -Wmissing-declarations diagnostic Simon Marchi
2020-01-11  3:33   ` Simon Marchi
2020-01-10 22:01 ` [PATCH v2 1/7] gdb: add back declarations for _initialize functions Simon Marchi
2020-01-11  3:32   ` Simon Marchi
2020-01-10 22:09 ` Simon Marchi [this message]
2020-01-10 22:09 ` [PATCH v2 6/7] gdbserver: set IP_AGENT_EXPORT_FUNC to static when not building IPA, add declarations Simon Marchi
2020-01-11 18:11 ` [PATCH v2 0/7] Enable -Wmissing-declarations diagnostic Tom Tromey
2020-01-11 17:29   ` Tom Tromey
2020-01-12  7:06   ` Simon Marchi
2020-01-13 19:19     ` Simon Marchi
2020-01-12  8:13   ` Joel Brobecker
2020-01-12 20:23 ` Simon Marchi
2020-01-13 17:42   ` Tom Tromey
2020-01-13 19:10     ` Simon Marchi

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=20200110220027.26450-6-simon.marchi@efficios.com \
    --to=simon.marchi@efficios.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