From df4a0200dc896abe32bef4172ca047465caaedfe Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 13 Jan 2020 14:04:53 -0500 Subject: [PATCH] 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 --- gdb/gdbserver/ChangeLog | 9 +++++++++ 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 bd9280f3c91..9842da52b70 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,12 @@ +2020-01-13 Simon Marchi + + * 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 * inferiors.c: Include gdbsupport/common-inferior.h. diff --git a/gdb/gdbserver/linux-x86-low.c b/gdb/gdbserver/linux-x86-low.c index 047eb1376ab..09ec22ff678 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.30.2