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
This commit is contained in:
Simon Marchi 2020-01-13 14:04:53 -05:00
parent 89e94ec9af
commit df4a0200dc
2 changed files with 22 additions and 13 deletions

View File

@ -1,3 +1,12 @@
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.

View File

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