diff options
author | Mark Kettenis <kettenis@gnu.org> | 2002-07-01 10:20:40 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2002-07-01 10:20:40 +0000 |
commit | 3a1e71e3b16dd521ce7e6304b4f3379af582ed48 (patch) | |
tree | 52691e437417b705e1e2e35b9452e1e6282da614 | |
parent | 4a14403c9fbe855d3aaae73126a3e87001402b4c (diff) | |
download | gdb-3a1e71e3b16dd521ce7e6304b4f3379af582ed48.zip gdb-3a1e71e3b16dd521ce7e6304b4f3379af582ed48.tar.gz gdb-3a1e71e3b16dd521ce7e6304b4f3379af582ed48.tar.bz2 |
* 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.
-rw-r--r-- | gdb/ChangeLog | 13 | ||||
-rw-r--r-- | gdb/i386-tdep.c | 40 |
2 files changed, 33 insertions, 20 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5779d19..7d99b7f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,18 @@ 2002-07-01 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. + +2002-07-01 Mark Kettenis <kettenis@gnu.org> + * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed. * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed. diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index 1a838f2..7c11b60 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -472,7 +472,7 @@ i386_frame_chain (struct frame_info *frame) 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_info *frame) /* 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 *fi) 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_info *fip) /* 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, int *len) 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_ADDR pc, CORE_ADDR fun, int nargs, *((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 value **args, CORE_ADDR sp, 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, CORE_ADDR sp) 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 *type, char *regbuf, char *valbuf) /* 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 *type, char *valbuf) 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, struct type *type) 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 regnum, struct type *type, /* 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, char *name) /* 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 info, struct gdbarch *gdbarch) /* 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 info, struct gdbarch *gdbarch) /* 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 info, struct gdbarch *gdbarch) } -struct gdbarch * +static struct gdbarch * i386_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) { struct gdbarch_tdep *tdep; |