diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2020-01-13 14:04:53 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2020-01-13 14:04:53 -0500 |
commit | df4a0200dc896abe32bef4172ca047465caaedfe (patch) | |
tree | 25e46e6d4cffe62faec72aa96e3769bf64588450 /gdb | |
parent | 89e94ec9af58bfab38d469fe42c3eaf2aeb35e31 (diff) | |
download | gdb-df4a0200dc896abe32bef4172ca047465caaedfe.zip gdb-df4a0200dc896abe32bef4172ca047465caaedfe.tar.gz gdb-df4a0200dc896abe32bef4172ca047465caaedfe.tar.bz2 |
gdbserver: make some functions static in linux-x86-low.c
These functions are only used in this file, so should be static.
gdb/gdbserver/ChangeLog:
* linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
static.
Change-Id: I703da41867735aefadd49140e80cd60f6ab9ad39
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 9 | ||||
-rw-r--r-- | gdb/gdbserver/linux-x86-low.c | 26 |
2 files changed, 22 insertions, 13 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index bd9280f..9842da5 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,5 +1,14 @@ 2020-01-13 Simon Marchi <simon.marchi@efficios.com> + * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto, + amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto, + amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto, + i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto, + i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make + static. + +2020-01-13 Simon Marchi <simon.marchi@efficios.com> + * inferiors.c: Include gdbsupport/common-inferior.h. 2020-01-13 Simon Marchi <simon.marchi@efficios.com> diff --git a/gdb/gdbserver/linux-x86-low.c b/gdb/gdbserver/linux-x86-low.c index 047eb13..09ec22f 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, |