[PATCH] Make several functions in i386tdep.c static
Mark Kettenis
kettenis@gnu.org
Mon Jul 1 03:21:00 GMT 2002
Most functions in i386-tdep.c don't need to be exported anymore.
Committed.
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* i386-tdep.c (i386_frameless_function_invocation,
i386_frame_num_args, i386_frame_init_saved_regs,
i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
i386_pop_frame, i386_push_arguments, i386_store_struct_return,
i386_extract_return_value, i386_store_return_value,
i386_extract_struct_value_address, i386_register_virtual_type,
i386_register_convertible, i386_register_convert_to_virtual,
i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
static.
Index: i386-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/i386-tdep.c,v
retrieving revision 1.66
diff -u -p -r1.66 i386-tdep.c
--- i386-tdep.c 17 Jun 2002 23:32:30 -0000 1.66
+++ i386-tdep.c 1 Jul 2002 10:16:11 -0000
@@ -472,7 +472,7 @@ i386_frame_chain (struct frame_info *fra
not have a from on the stack associated with it. If it does not,
return non-zero, otherwise return zero. */
-int
+static int
i386_frameless_function_invocation (struct frame_info *frame)
{
if (frame->signal_handler_caller)
@@ -509,7 +509,7 @@ i386_saved_pc_after_call (struct frame_i
/* Return number of args passed to a frame.
Can return -1, meaning no way to tell. */
-int
+static int
i386_frame_num_args (struct frame_info *fi)
{
#if 1
@@ -606,7 +606,7 @@ i386_frame_num_args (struct frame_info *
If the setup sequence is at the end of the function, then the next
instruction will be a branch back to the start. */
-void
+static void
i386_frame_init_saved_regs (struct frame_info *fip)
{
long locals = -1;
@@ -666,7 +666,7 @@ i386_frame_init_saved_regs (struct frame
/* Return PC of first real instruction. */
-CORE_ADDR
+static CORE_ADDR
i386_skip_prologue (CORE_ADDR pc)
{
unsigned char op;
@@ -767,7 +767,7 @@ i386_breakpoint_from_pc (CORE_ADDR *pc,
return break_insn;
}
-void
+static void
i386_push_dummy_frame (void)
{
CORE_ADDR sp = read_register (SP_REGNUM);
@@ -803,7 +803,7 @@ static LONGEST i386_call_dummy_words[] =
/* Insert the (relative) function address into the call sequence
stored at DYMMY. */
-void
+static void
i386_fix_call_dummy (char *dummy, CORE_ADDR pc, CORE_ADDR fun, int nargs,
struct value **args, struct type *type, int gcc_p)
{
@@ -820,7 +820,7 @@ i386_fix_call_dummy (char *dummy, CORE_A
*((char *)(dummy) + 4) = ((delta >> 24) & 0xff);
}
-void
+static void
i386_pop_frame (void)
{
struct frame_info *frame = get_current_frame ();
@@ -880,7 +880,7 @@ i386_get_longjmp_target (CORE_ADDR *pc)
}
-CORE_ADDR
+static CORE_ADDR
i386_push_arguments (int nargs, struct value **args, CORE_ADDR sp,
int struct_return, CORE_ADDR struct_addr)
{
@@ -898,7 +898,7 @@ i386_push_arguments (int nargs, struct v
return sp;
}
-void
+static void
i386_store_struct_return (CORE_ADDR addr, CORE_ADDR sp)
{
/* Do nothing. Everything was already done by i386_push_arguments. */
@@ -914,7 +914,7 @@ i386_store_struct_return (CORE_ADDR addr
function return value of TYPE, and copy that, in virtual format,
into VALBUF. */
-void
+static void
i386_extract_return_value (struct type *type, char *regbuf, char *valbuf)
{
int len = TYPE_LENGTH (type);
@@ -965,7 +965,7 @@ i386_extract_return_value (struct type *
/* Write into the appropriate registers a function return value stored
in VALBUF of type TYPE, given in virtual format. */
-void
+static void
i386_store_return_value (struct type *type, char *valbuf)
{
int len = TYPE_LENGTH (type);
@@ -1037,7 +1037,7 @@ i386_store_return_value (struct type *ty
the address in which a function should return its structure value,
as a CORE_ADDR. */
-CORE_ADDR
+static CORE_ADDR
i386_extract_struct_value_address (char *regbuf)
{
return extract_address (®buf[REGISTER_BYTE (LOW_RETURN_REGNUM)],
@@ -1080,7 +1080,7 @@ i386_use_struct_convention (int gcc_p, s
register REGNUM. Perhaps %esi and %edi should go here, but
potentially they could be used for things other than address. */
-struct type *
+static struct type *
i386_register_virtual_type (int regnum)
{
if (regnum == PC_REGNUM || regnum == FP_REGNUM || regnum == SP_REGNUM)
@@ -1101,7 +1101,7 @@ i386_register_virtual_type (int regnum)
registers need conversion. Even if we can't find a counterexample,
this is still sloppy. */
-int
+static int
i386_register_convertible (int regnum)
{
return IS_FP_REGNUM (regnum);
@@ -1110,7 +1110,7 @@ i386_register_convertible (int regnum)
/* Convert data from raw format for register REGNUM in buffer FROM to
virtual format with type TYPE in buffer TO. */
-void
+static void
i386_register_convert_to_virtual (int regnum, struct type *type,
char *from, char *to)
{
@@ -1133,7 +1133,7 @@ i386_register_convert_to_virtual (int re
/* Convert data from virtual format with type TYPE in buffer FROM to
raw format for register REGNUM in buffer TO. */
-void
+static void
i386_register_convert_to_raw (struct type *type, int regnum,
char *from, char *to)
{
@@ -1247,7 +1247,7 @@ i386_svr4_pc_in_sigtramp (CORE_ADDR pc,
/* Get saved user PC for sigtramp from the pushed ucontext on the
stack for all three variants of SVR4 sigtramps. */
-CORE_ADDR
+static CORE_ADDR
i386_svr4_sigtramp_saved_pc (struct frame_info *frame)
{
CORE_ADDR saved_pc_offset = 4;
@@ -1310,7 +1310,7 @@ i386_svr4_init_abi (struct gdbarch_info
/* DJGPP. */
-void
+static void
i386_go32_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
{
struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
@@ -1322,7 +1322,7 @@ i386_go32_init_abi (struct gdbarch_info
/* NetWare. */
-void
+static void
i386_nw_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
{
struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
@@ -1334,7 +1334,7 @@ i386_nw_init_abi (struct gdbarch_info in
}
-struct gdbarch *
+static struct gdbarch *
i386_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
{
struct gdbarch_tdep *tdep;
More information about the Gdb-patches
mailing list