2003-06-11 Andrew Cagney <cagney@redhat.com>

* xstormy16-tdep.c (xstormy16_push_return_address): Make static.
	(xstormy16_save_dummy_frame_tos): Make static.
	(_initialize_xstormy16_tdep): Add declaration.
	* vax-tdep.c (_initialize_vax_tdep): Add declaration.
	* v850-tdep.c: Make local functions static.
	(_initialize_v850_tdep): Add declaration.
	* sparc-tdep.c: Make local functions static.
	(_initialize_sparc_tdep): Add declaration.
	* sh-tdep.c: Make local functions static.
	(_initialize_sh_tdep): Add declaration.
	* sh3-rom.c (_initialize_sh3_rom): Add declaration.
	* s390-tdep.c: Make local functions static.
	(_initialize_s390_tdep): Add declaration.
	* dbxread.c (find_stab_function_addr): Make static.
	* ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
	* ocd.c (_initialize_remote_ocd): Add declaration.
	* dink32-rom.c (_initialize_dink32_rom): Add declaration.
	* ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
	* ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
	* ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
	* mips-tdep.c (_initialize_mips_tdep): Add declaration.
	* remote-array.c (_initialize_array): Add declaration.
	(_initialize_remote_monitors): Add declaration.
	* remote-mips.c: Make local functions static.
	(_initialize_remote_mips): Add declaration.
	* mcore-tdep.c: Make all local functions static.
	(_initialize_mcore_tdep): Add declaration.
	* dbug-rom.c (_initialize_dbug_rom): Add declaration.
	* abug-rom.c (_initialize_abug_rom): Add declaration.
	* rom68k-rom.c (_initialize_rom68k): Add declaration.
	* cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
	* m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
	* remote-est.c (_initialize_est): Add declaration.
	* m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
	(m68hc11_call_dummy_address): Make static.
	* ia64-tdep.c: Make local functions static.
	(_initialize_ia64_tdep): Add declaration.
	* solib-legacy.c (_initialize_svr4_lm): Add declaration.
	* monitor.c (monitor_wait_filter): Make static.
	(_initialize_remote_monitors): Add declaration.
	* remote-hms.c (_initialize_remote_hms): Add declaration.
	* remote-e7000.c (fetch_regs_from_dump): Make static.
	(expect_n): Make static.
	(_initialize_remote_e7000): Add declaration.
	* ser-e7kpc.c: Always include "defs.h".
	(_initialize_ser_e7000pc): Add declaration.
	* h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
	* cris-tdep.c: Make all but one function static.
	(_initialize_cris_tdep): Add declaration.
	* solib-svr4.c (_initialize_svr4_solib): Add declaration.
	* solib.c (update_solib_list): Make static.
	(_initialize_solib): Add declaration.
	* avr-tdep.c (avr_breakpoint_from_pc): Make static.
	(_initialize_avr_tdep): Add declaration.
	* remote-rdi.c (voiddummy): Make static.
	(_initialize_remote_rdi): Add declaration.
	* arm-tdep.c (_initialize_arm_tdep): Add declaration.
	* remote-rdp.c (send_rdp): Make static.
	(_initialize_remote_rdp): Add declaration.
	* alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
This commit is contained in:
Andrew Cagney 2003-06-11 13:16:30 +00:00
parent d25d759de9
commit a78f21af4f
45 changed files with 337 additions and 235 deletions

View File

@ -1,3 +1,66 @@
2003-06-11 Andrew Cagney <cagney@redhat.com>
* xstormy16-tdep.c (xstormy16_push_return_address): Make static.
(xstormy16_save_dummy_frame_tos): Make static.
(_initialize_xstormy16_tdep): Add declaration.
* vax-tdep.c (_initialize_vax_tdep): Add declaration.
* v850-tdep.c: Make local functions static.
(_initialize_v850_tdep): Add declaration.
* sparc-tdep.c: Make local functions static.
(_initialize_sparc_tdep): Add declaration.
* sh-tdep.c: Make local functions static.
(_initialize_sh_tdep): Add declaration.
* sh3-rom.c (_initialize_sh3_rom): Add declaration.
* s390-tdep.c: Make local functions static.
(_initialize_s390_tdep): Add declaration.
* dbxread.c (find_stab_function_addr): Make static.
* ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
* ocd.c (_initialize_remote_ocd): Add declaration.
* dink32-rom.c (_initialize_dink32_rom): Add declaration.
* ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
* ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
* ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
* mips-tdep.c (_initialize_mips_tdep): Add declaration.
* remote-array.c (_initialize_array): Add declaration.
(_initialize_remote_monitors): Add declaration.
* remote-mips.c: Make local functions static.
(_initialize_remote_mips): Add declaration.
* mcore-tdep.c: Make all local functions static.
(_initialize_mcore_tdep): Add declaration.
* dbug-rom.c (_initialize_dbug_rom): Add declaration.
* abug-rom.c (_initialize_abug_rom): Add declaration.
* rom68k-rom.c (_initialize_rom68k): Add declaration.
* cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
* m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
* remote-est.c (_initialize_est): Add declaration.
* m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
(m68hc11_call_dummy_address): Make static.
* ia64-tdep.c: Make local functions static.
(_initialize_ia64_tdep): Add declaration.
* solib-legacy.c (_initialize_svr4_lm): Add declaration.
* monitor.c (monitor_wait_filter): Make static.
(_initialize_remote_monitors): Add declaration.
* remote-hms.c (_initialize_remote_hms): Add declaration.
* remote-e7000.c (fetch_regs_from_dump): Make static.
(expect_n): Make static.
(_initialize_remote_e7000): Add declaration.
* ser-e7kpc.c: Always include "defs.h".
(_initialize_ser_e7000pc): Add declaration.
* h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
* cris-tdep.c: Make all but one function static.
(_initialize_cris_tdep): Add declaration.
* solib-svr4.c (_initialize_svr4_solib): Add declaration.
* solib.c (update_solib_list): Make static.
(_initialize_solib): Add declaration.
* avr-tdep.c (avr_breakpoint_from_pc): Make static.
(_initialize_avr_tdep): Add declaration.
* remote-rdi.c (voiddummy): Make static.
(_initialize_remote_rdi): Add declaration.
* arm-tdep.c (_initialize_arm_tdep): Add declaration.
* remote-rdp.c (send_rdp): Make static.
(_initialize_remote_rdp): Add declaration.
* alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
2003-06-11 Corinna Vinschen <vinschen@redhat.com> 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
* remote-fileio.c: Make ari happy. * remote-fileio.c: Make ari happy.

View File

@ -164,6 +164,8 @@ abug_open (char *args, int from_tty)
monitor_open (args, &abug_cmds, from_tty); monitor_open (args, &abug_cmds, from_tty);
} }
extern initialize_file_ftype _initialize_abug_rom; /* -Wmissing-prototypes */
void void
_initialize_abug_rom (void) _initialize_abug_rom (void)
{ {

View File

@ -1590,6 +1590,8 @@ alpha_dwarf2_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
set_gdbarch_dwarf2_build_frame_info (gdbarch, dwarf2_build_frame_info); set_gdbarch_dwarf2_build_frame_info (gdbarch, dwarf2_build_frame_info);
} }
extern initialize_file_ftype _initialize_alpha_tdep; /* -Wmissing-prototypes */
void void
_initialize_alpha_tdep (void) _initialize_alpha_tdep (void)
{ {

View File

@ -875,7 +875,7 @@ gdbarch_info_init (struct gdbarch_info *info)
/* */ /* */
extern initialize_file_ftype _initialize_gdbarch_utils; extern initialize_file_ftype _initialize_gdbarch_utils; /* -Wmissing-prototypes */
void void
_initialize_gdbarch_utils (void) _initialize_gdbarch_utils (void)

View File

@ -3054,6 +3054,8 @@ arm_init_abi_apcs (struct gdbarch_info info,
/* Place-holder. */ /* Place-holder. */
} }
extern initialize_file_ftype _initialize_arm_tdep; /* -Wmissing-prototypes */
void void
_initialize_arm_tdep (void) _initialize_arm_tdep (void)
{ {

View File

@ -1095,7 +1095,7 @@ avr_push_arguments (int nargs, struct value **args, CORE_ADDR sp,
it as a NOP. Thus, it should be ok. Since the avr is currently a remote it as a NOP. Thus, it should be ok. Since the avr is currently a remote
only target, this shouldn't be a problem (I hope). TRoth/2003-05-14 */ only target, this shouldn't be a problem (I hope). TRoth/2003-05-14 */
const unsigned char * static const unsigned char *
avr_breakpoint_from_pc (CORE_ADDR * pcptr, int *lenptr) avr_breakpoint_from_pc (CORE_ADDR * pcptr, int *lenptr)
{ {
static unsigned char avr_break_insn [] = { 0x98, 0x95 }; static unsigned char avr_break_insn [] = { 0x98, 0x95 };
@ -1310,6 +1310,8 @@ avr_io_reg_read_command (char *args, int from_tty)
} }
} }
extern initialize_file_ftype _initialize_avr_tdep; /* -Wmissing-prototypes */
void void
_initialize_avr_tdep (void) _initialize_avr_tdep (void)
{ {

View File

@ -162,6 +162,8 @@ cpu32bug_open (char *args, int from_tty)
monitor_open (args, &cpu32bug_cmds, from_tty); monitor_open (args, &cpu32bug_cmds, from_tty);
} }
extern initialize_file_ftype _initialize_cpu32bug_rom; /* -Wmissing-prototypes */
void void
_initialize_cpu32bug_rom (void) _initialize_cpu32bug_rom (void)
{ {

View File

@ -464,7 +464,7 @@ static CORE_ADDR bfd_lookup_symbol (bfd *, const char *);
the entire prologue is examined (0) or just enough instructions to the entire prologue is examined (0) or just enough instructions to
determine that it is a prologue (1). */ determine that it is a prologue (1). */
CORE_ADDR static CORE_ADDR
cris_examine (CORE_ADDR ip, CORE_ADDR limit, struct frame_info *fi, cris_examine (CORE_ADDR ip, CORE_ADDR limit, struct frame_info *fi,
int frameless_p) int frameless_p)
{ {
@ -712,7 +712,7 @@ cris_examine (CORE_ADDR ip, CORE_ADDR limit, struct frame_info *fi,
/* Advance pc beyond any function entry prologue instructions at pc /* Advance pc beyond any function entry prologue instructions at pc
to reach some "real" code. */ to reach some "real" code. */
CORE_ADDR static CORE_ADDR
cris_skip_prologue (CORE_ADDR pc) cris_skip_prologue (CORE_ADDR pc)
{ {
return cris_skip_prologue_main (pc, 0); return cris_skip_prologue_main (pc, 0);
@ -722,7 +722,7 @@ cris_skip_prologue (CORE_ADDR pc)
has a frame. Its result is equal to its input pc if the function is has a frame. Its result is equal to its input pc if the function is
frameless, unequal otherwise. */ frameless, unequal otherwise. */
CORE_ADDR static CORE_ADDR
cris_skip_prologue_frameless_p (CORE_ADDR pc) cris_skip_prologue_frameless_p (CORE_ADDR pc)
{ {
return cris_skip_prologue_main (pc, 1); return cris_skip_prologue_main (pc, 1);
@ -731,7 +731,7 @@ cris_skip_prologue_frameless_p (CORE_ADDR pc)
/* Given a PC value corresponding to the start of a function, return the PC /* Given a PC value corresponding to the start of a function, return the PC
of the first instruction after the function prologue. */ of the first instruction after the function prologue. */
CORE_ADDR static CORE_ADDR
cris_skip_prologue_main (CORE_ADDR pc, int frameless_p) cris_skip_prologue_main (CORE_ADDR pc, int frameless_p)
{ {
struct cleanup *old_chain = make_cleanup (null_cleanup, NULL); struct cleanup *old_chain = make_cleanup (null_cleanup, NULL);
@ -763,7 +763,7 @@ cris_skip_prologue_main (CORE_ADDR pc, int frameless_p)
adjusts pcptr (if necessary) to point to the actual memory location where adjusts pcptr (if necessary) to point to the actual memory location where
the breakpoint should be inserted. */ the breakpoint should be inserted. */
const unsigned char * static const unsigned char *
cris_breakpoint_from_pc (CORE_ADDR *pcptr, int *lenptr) cris_breakpoint_from_pc (CORE_ADDR *pcptr, int *lenptr)
{ {
static unsigned char break_insn[] = {0x38, 0xe9}; static unsigned char break_insn[] = {0x38, 0xe9};
@ -784,7 +784,7 @@ cris_saved_pc_after_call (struct frame_info *frame)
/* Returns 1 if spec_reg is applicable to the current gdbarch's CRIS version, /* Returns 1 if spec_reg is applicable to the current gdbarch's CRIS version,
0 otherwise. */ 0 otherwise. */
int static int
cris_spec_reg_applicable (struct cris_spec_reg spec_reg) cris_spec_reg_applicable (struct cris_spec_reg spec_reg)
{ {
int version = cris_version (); int version = cris_version ();
@ -818,7 +818,7 @@ cris_spec_reg_applicable (struct cris_spec_reg spec_reg)
/* Returns the register size in unit byte. Returns 0 for an unimplemented /* Returns the register size in unit byte. Returns 0 for an unimplemented
register, -1 for an invalid register. */ register, -1 for an invalid register. */
int static int
cris_register_size (int regno) cris_register_size (int regno)
{ {
int i; int i;
@ -857,7 +857,7 @@ cris_register_size (int regno)
/* Nonzero if regno should not be fetched from the target. This is the case /* Nonzero if regno should not be fetched from the target. This is the case
for unimplemented (size 0) and non-existant registers. */ for unimplemented (size 0) and non-existant registers. */
int static int
cris_cannot_fetch_register (int regno) cris_cannot_fetch_register (int regno)
{ {
return ((regno < 0 || regno >= NUM_REGS) return ((regno < 0 || regno >= NUM_REGS)
@ -867,7 +867,7 @@ cris_cannot_fetch_register (int regno)
/* Nonzero if regno should not be written to the target, for various /* Nonzero if regno should not be written to the target, for various
reasons. */ reasons. */
int static int
cris_cannot_store_register (int regno) cris_cannot_store_register (int regno)
{ {
/* There are three kinds of registers we refuse to write to. /* There are three kinds of registers we refuse to write to.
@ -903,7 +903,7 @@ cris_cannot_store_register (int regno)
in the saved register state. Returns -1 for an invalid or unimplemented in the saved register state. Returns -1 for an invalid or unimplemented
register. */ register. */
int static int
cris_register_offset (int regno) cris_register_offset (int regno)
{ {
int i; int i;
@ -929,7 +929,7 @@ cris_register_offset (int regno)
/* Return the GDB type (defined in gdbtypes.c) for the "standard" data type /* Return the GDB type (defined in gdbtypes.c) for the "standard" data type
of data in register regno. */ of data in register regno. */
struct type * static struct type *
cris_register_virtual_type (int regno) cris_register_virtual_type (int regno)
{ {
if (regno == SP_REGNUM || regno == PC_REGNUM if (regno == SP_REGNUM || regno == PC_REGNUM
@ -966,7 +966,7 @@ cris_register_virtual_type (int regno)
/* In the original CRIS ABI, R10 is used to store return values. */ /* In the original CRIS ABI, R10 is used to store return values. */
void static void
cris_abi_original_store_return_value (struct type *type, char *valbuf) cris_abi_original_store_return_value (struct type *type, char *valbuf)
{ {
int len = TYPE_LENGTH (type); int len = TYPE_LENGTH (type);
@ -979,7 +979,7 @@ cris_abi_original_store_return_value (struct type *type, char *valbuf)
/* In the CRIS ABI V2, R10 and R11 are used to store return values. */ /* In the CRIS ABI V2, R10 and R11 are used to store return values. */
void static void
cris_abi_v2_store_return_value (struct type *type, char *valbuf) cris_abi_v2_store_return_value (struct type *type, char *valbuf)
{ {
int len = TYPE_LENGTH (type); int len = TYPE_LENGTH (type);
@ -997,7 +997,7 @@ cris_abi_v2_store_return_value (struct type *type, char *valbuf)
/* Return the name of register regno as a string. Return NULL for an invalid or /* Return the name of register regno as a string. Return NULL for an invalid or
unimplemented register. */ unimplemented register. */
const char * static const char *
cris_register_name (int regno) cris_register_name (int regno)
{ {
static char *cris_genreg_names[] = static char *cris_genreg_names[] =
@ -1039,7 +1039,7 @@ cris_register_name (int regno)
} }
} }
int static int
cris_register_bytes_ok (long bytes) cris_register_bytes_ok (long bytes)
{ {
return (bytes == DEPRECATED_REGISTER_BYTES); return (bytes == DEPRECATED_REGISTER_BYTES);
@ -1051,7 +1051,7 @@ cris_register_bytes_ok (long bytes)
/* In the original CRIS ABI, R10 is used to return values. */ /* In the original CRIS ABI, R10 is used to return values. */
void static void
cris_abi_original_extract_return_value (struct type *type, char *regbuf, cris_abi_original_extract_return_value (struct type *type, char *regbuf,
char *valbuf) char *valbuf)
{ {
@ -1065,7 +1065,7 @@ cris_abi_original_extract_return_value (struct type *type, char *regbuf,
/* In the CRIS ABI V2, R10 and R11 are used to store return values. */ /* In the CRIS ABI V2, R10 and R11 are used to store return values. */
void static void
cris_abi_v2_extract_return_value (struct type *type, char *regbuf, cris_abi_v2_extract_return_value (struct type *type, char *regbuf,
char *valbuf) char *valbuf)
{ {
@ -1083,7 +1083,7 @@ cris_abi_v2_extract_return_value (struct type *type, char *regbuf,
be stored. R9 is call-clobbered, which means we must save it here for be stored. R9 is call-clobbered, which means we must save it here for
later use. */ later use. */
void static void
cris_store_struct_return (CORE_ADDR addr, CORE_ADDR sp) cris_store_struct_return (CORE_ADDR addr, CORE_ADDR sp)
{ {
write_register (STR_REGNUM, addr); write_register (STR_REGNUM, addr);
@ -1094,7 +1094,7 @@ cris_store_struct_return (CORE_ADDR addr, CORE_ADDR sp)
structure value. It's not there in the CRIS ABI, so we must do it another structure value. It's not there in the CRIS ABI, so we must do it another
way. */ way. */
CORE_ADDR static CORE_ADDR
cris_extract_struct_value_address (char *regbuf) cris_extract_struct_value_address (char *regbuf)
{ {
return struct_return_address; return struct_return_address;
@ -1107,7 +1107,7 @@ cris_extract_struct_value_address (char *regbuf)
function by reference in register R9 to a caller-allocated area, so function by reference in register R9 to a caller-allocated area, so
this is always true. */ this is always true. */
int static int
cris_use_struct_convention (int gcc_p, struct type *type) cris_use_struct_convention (int gcc_p, struct type *type)
{ {
return 1; return 1;
@ -1119,7 +1119,7 @@ cris_use_struct_convention (int gcc_p, struct type *type)
/* In the original CRIS ABI, arguments shorter than or equal to 32 bits are /* In the original CRIS ABI, arguments shorter than or equal to 32 bits are
passed by value. */ passed by value. */
int static int
cris_abi_original_reg_struct_has_addr (int gcc_p, struct type *type) cris_abi_original_reg_struct_has_addr (int gcc_p, struct type *type)
{ {
return (TYPE_LENGTH (type) > 4); return (TYPE_LENGTH (type) > 4);
@ -1128,7 +1128,7 @@ cris_abi_original_reg_struct_has_addr (int gcc_p, struct type *type)
/* In the CRIS ABI V2, arguments shorter than or equal to 64 bits are passed /* In the CRIS ABI V2, arguments shorter than or equal to 64 bits are passed
by value. */ by value. */
int static int
cris_abi_v2_reg_struct_has_addr (int gcc_p, struct type *type) cris_abi_v2_reg_struct_has_addr (int gcc_p, struct type *type)
{ {
return (TYPE_LENGTH (type) > 8); return (TYPE_LENGTH (type) > 8);
@ -1137,7 +1137,7 @@ cris_abi_v2_reg_struct_has_addr (int gcc_p, struct type *type)
/* Returns 1 if the function invocation represented by fi does not have a /* Returns 1 if the function invocation represented by fi does not have a
stack frame associated with it. Otherwise return 0. */ stack frame associated with it. Otherwise return 0. */
int static int
cris_frameless_function_invocation (struct frame_info *fi) cris_frameless_function_invocation (struct frame_info *fi)
{ {
if ((get_frame_type (fi) == SIGTRAMP_FRAME)) if ((get_frame_type (fi) == SIGTRAMP_FRAME))
@ -1151,7 +1151,7 @@ cris_frameless_function_invocation (struct frame_info *fi)
frame->saved_regs shall be allocated by frame->saved_regs shall be allocated by
DEPRECATED_FRAME_INIT_SAVED_REGS using frame_saved_regs_zalloc. */ DEPRECATED_FRAME_INIT_SAVED_REGS using frame_saved_regs_zalloc. */
void static void
cris_frame_init_saved_regs (struct frame_info *fi) cris_frame_init_saved_regs (struct frame_info *fi)
{ {
CORE_ADDR ip; CORE_ADDR ip;
@ -1198,7 +1198,7 @@ cris_frame_init_saved_regs (struct frame_info *fi)
When the call is from get_prev_frame_info, fromleaf is determined by When the call is from get_prev_frame_info, fromleaf is determined by
cris_frameless_function_invocation. */ cris_frameless_function_invocation. */
void static void
cris_init_extra_frame_info (int fromleaf, struct frame_info *fi) cris_init_extra_frame_info (int fromleaf, struct frame_info *fi)
{ {
if (get_next_frame (fi)) if (get_next_frame (fi))
@ -1252,7 +1252,7 @@ cris_init_extra_frame_info (int fromleaf, struct frame_info *fi)
/* Return the content of the frame pointer in the present frame. In other /* Return the content of the frame pointer in the present frame. In other
words, determine the address of the calling function's frame. */ words, determine the address of the calling function's frame. */
CORE_ADDR static CORE_ADDR
cris_frame_chain (struct frame_info *fi) cris_frame_chain (struct frame_info *fi)
{ {
if (DEPRECATED_PC_IN_CALL_DUMMY (get_frame_pc (fi), if (DEPRECATED_PC_IN_CALL_DUMMY (get_frame_pc (fi),
@ -1273,7 +1273,7 @@ cris_frame_chain (struct frame_info *fi)
/* Return the saved PC (which equals the return address) of this frame. */ /* Return the saved PC (which equals the return address) of this frame. */
CORE_ADDR static CORE_ADDR
cris_frame_saved_pc (struct frame_info *fi) cris_frame_saved_pc (struct frame_info *fi)
{ {
return get_frame_extra_info (fi)->return_pc; return get_frame_extra_info (fi)->return_pc;
@ -1281,7 +1281,7 @@ cris_frame_saved_pc (struct frame_info *fi)
/* Setup the function arguments for calling a function in the inferior. */ /* Setup the function arguments for calling a function in the inferior. */
CORE_ADDR static CORE_ADDR
cris_abi_original_push_arguments (int nargs, struct value **args, cris_abi_original_push_arguments (int nargs, struct value **args,
CORE_ADDR sp, int struct_return, CORE_ADDR sp, int struct_return,
CORE_ADDR struct_addr) CORE_ADDR struct_addr)
@ -1367,7 +1367,7 @@ cris_abi_original_push_arguments (int nargs, struct value **args,
return sp; return sp;
} }
CORE_ADDR static CORE_ADDR
cris_abi_v2_push_arguments (int nargs, struct value **args, CORE_ADDR sp, cris_abi_v2_push_arguments (int nargs, struct value **args, CORE_ADDR sp,
int struct_return, CORE_ADDR struct_addr) int struct_return, CORE_ADDR struct_addr)
{ {
@ -1499,7 +1499,7 @@ cris_abi_v2_push_arguments (int nargs, struct value **args, CORE_ADDR sp,
by the called function unless it is a leaf-function. Due to the BRP by the called function unless it is a leaf-function. Due to the BRP
register the PC will change when continue is sent. */ register the PC will change when continue is sent. */
CORE_ADDR static CORE_ADDR
cris_push_return_address (CORE_ADDR pc, CORE_ADDR sp) cris_push_return_address (CORE_ADDR pc, CORE_ADDR sp)
{ {
write_register (SRP_REGNUM, CALL_DUMMY_ADDRESS ()); write_register (SRP_REGNUM, CALL_DUMMY_ADDRESS ());
@ -1510,7 +1510,7 @@ cris_push_return_address (CORE_ADDR pc, CORE_ADDR sp)
was created. Discard the innermost frame from the stack and restore was created. Discard the innermost frame from the stack and restore
all saved registers. */ all saved registers. */
void static void
cris_pop_frame (void) cris_pop_frame (void)
{ {
register struct frame_info *fi = get_current_frame (); register struct frame_info *fi = get_current_frame ();
@ -1772,7 +1772,7 @@ find_step_target (inst_env_type *inst_env)
digs through the opcodes in order to find all possible targets. digs through the opcodes in order to find all possible targets.
Either one ordinary target or two targets for branches may be found. */ Either one ordinary target or two targets for branches may be found. */
void static void
cris_software_single_step (enum target_signal ignore, int insert_breakpoints) cris_software_single_step (enum target_signal ignore, int insert_breakpoints)
{ {
inst_env_type inst_env; inst_env_type inst_env;
@ -1816,7 +1816,7 @@ cris_software_single_step (enum target_signal ignore, int insert_breakpoints)
/* Calculates the prefix value for quick offset addressing mode. */ /* Calculates the prefix value for quick offset addressing mode. */
void static void
quick_mode_bdap_prefix (unsigned short inst, inst_env_type *inst_env) quick_mode_bdap_prefix (unsigned short inst, inst_env_type *inst_env)
{ {
/* It's invalid to be in a delay slot. You can't have a prefix to this /* It's invalid to be in a delay slot. You can't have a prefix to this
@ -1840,7 +1840,7 @@ quick_mode_bdap_prefix (unsigned short inst, inst_env_type *inst_env)
from the size of the operation. The PC is always kept aligned on even from the size of the operation. The PC is always kept aligned on even
word addresses. */ word addresses. */
void static void
process_autoincrement (int size, unsigned short inst, inst_env_type *inst_env) process_autoincrement (int size, unsigned short inst, inst_env_type *inst_env)
{ {
if (size == INST_BYTE_SIZE) if (size == INST_BYTE_SIZE)
@ -1871,12 +1871,13 @@ process_autoincrement (int size, unsigned short inst, inst_env_type *inst_env)
/* Just a forward declaration. */ /* Just a forward declaration. */
unsigned long get_data_from_address (unsigned short *inst, CORE_ADDR address); static unsigned long get_data_from_address (unsigned short *inst,
CORE_ADDR address);
/* Calculates the prefix value for the general case of offset addressing /* Calculates the prefix value for the general case of offset addressing
mode. */ mode. */
void static void
bdap_prefix (unsigned short inst, inst_env_type *inst_env) bdap_prefix (unsigned short inst, inst_env_type *inst_env)
{ {
@ -1912,7 +1913,7 @@ bdap_prefix (unsigned short inst, inst_env_type *inst_env)
/* Calculates the prefix value for the index addressing mode. */ /* Calculates the prefix value for the index addressing mode. */
void static void
biap_prefix (unsigned short inst, inst_env_type *inst_env) biap_prefix (unsigned short inst, inst_env_type *inst_env)
{ {
/* It's invalid to be in a delay slot. I can't see that it's possible to /* It's invalid to be in a delay slot. I can't see that it's possible to
@ -1947,7 +1948,7 @@ biap_prefix (unsigned short inst, inst_env_type *inst_env)
/* Calculates the prefix value for the double indirect addressing mode. */ /* Calculates the prefix value for the double indirect addressing mode. */
void static void
dip_prefix (unsigned short inst, inst_env_type *inst_env) dip_prefix (unsigned short inst, inst_env_type *inst_env)
{ {
@ -1980,7 +1981,7 @@ dip_prefix (unsigned short inst, inst_env_type *inst_env)
/* Finds the destination for a branch with 8-bits offset. */ /* Finds the destination for a branch with 8-bits offset. */
void static void
eight_bit_offset_branch_op (unsigned short inst, inst_env_type *inst_env) eight_bit_offset_branch_op (unsigned short inst, inst_env_type *inst_env)
{ {
@ -2017,7 +2018,7 @@ eight_bit_offset_branch_op (unsigned short inst, inst_env_type *inst_env)
/* Finds the destination for a branch with 16-bits offset. */ /* Finds the destination for a branch with 16-bits offset. */
void static void
sixteen_bit_offset_branch_op (unsigned short inst, inst_env_type *inst_env) sixteen_bit_offset_branch_op (unsigned short inst, inst_env_type *inst_env)
{ {
short offset; short offset;
@ -2048,7 +2049,7 @@ sixteen_bit_offset_branch_op (unsigned short inst, inst_env_type *inst_env)
/* Handles the ABS instruction. */ /* Handles the ABS instruction. */
void static void
abs_op (unsigned short inst, inst_env_type *inst_env) abs_op (unsigned short inst, inst_env_type *inst_env)
{ {
@ -2090,7 +2091,7 @@ abs_op (unsigned short inst, inst_env_type *inst_env)
/* Handles the ADDI instruction. */ /* Handles the ADDI instruction. */
void static void
addi_op (unsigned short inst, inst_env_type *inst_env) addi_op (unsigned short inst, inst_env_type *inst_env)
{ {
/* It's invalid to have the PC as base register. And ADDI can't have /* It's invalid to have the PC as base register. And ADDI can't have
@ -2109,7 +2110,7 @@ addi_op (unsigned short inst, inst_env_type *inst_env)
/* Handles the ASR instruction. */ /* Handles the ASR instruction. */
void static void
asr_op (unsigned short inst, inst_env_type *inst_env) asr_op (unsigned short inst, inst_env_type *inst_env)
{ {
int shift_steps; int shift_steps;
@ -2186,7 +2187,7 @@ asr_op (unsigned short inst, inst_env_type *inst_env)
/* Handles the ASRQ instruction. */ /* Handles the ASRQ instruction. */
void static void
asrq_op (unsigned short inst, inst_env_type *inst_env) asrq_op (unsigned short inst, inst_env_type *inst_env)
{ {
@ -2233,7 +2234,7 @@ asrq_op (unsigned short inst, inst_env_type *inst_env)
/* Handles the AX, EI and SETF instruction. */ /* Handles the AX, EI and SETF instruction. */
void static void
ax_ei_setf_op (unsigned short inst, inst_env_type *inst_env) ax_ei_setf_op (unsigned short inst, inst_env_type *inst_env)
{ {
if (inst_env->prefix_found) if (inst_env->prefix_found)
@ -2259,7 +2260,7 @@ ax_ei_setf_op (unsigned short inst, inst_env_type *inst_env)
register. Note that check_assign assumes that the caller has checked that register. Note that check_assign assumes that the caller has checked that
there is a prefix to this instruction. The mode check depends on this. */ there is a prefix to this instruction. The mode check depends on this. */
void static void
check_assign (unsigned short inst, inst_env_type *inst_env) check_assign (unsigned short inst, inst_env_type *inst_env)
{ {
/* Check if it's an assign addressing mode. */ /* Check if it's an assign addressing mode. */
@ -2272,7 +2273,7 @@ check_assign (unsigned short inst, inst_env_type *inst_env)
/* Handles the 2-operand BOUND instruction. */ /* Handles the 2-operand BOUND instruction. */
void static void
two_operand_bound_op (unsigned short inst, inst_env_type *inst_env) two_operand_bound_op (unsigned short inst, inst_env_type *inst_env)
{ {
/* It's invalid to have the PC as the index operand. */ /* It's invalid to have the PC as the index operand. */
@ -2305,7 +2306,7 @@ two_operand_bound_op (unsigned short inst, inst_env_type *inst_env)
/* Handles the 3-operand BOUND instruction. */ /* Handles the 3-operand BOUND instruction. */
void static void
three_operand_bound_op (unsigned short inst, inst_env_type *inst_env) three_operand_bound_op (unsigned short inst, inst_env_type *inst_env)
{ {
/* It's an error if we haven't got a prefix. And it's also an error /* It's an error if we haven't got a prefix. And it's also an error
@ -2323,7 +2324,7 @@ three_operand_bound_op (unsigned short inst, inst_env_type *inst_env)
/* Clears the status flags in inst_env. */ /* Clears the status flags in inst_env. */
void static void
btst_nop_op (unsigned short inst, inst_env_type *inst_env) btst_nop_op (unsigned short inst, inst_env_type *inst_env)
{ {
/* It's an error if we have got a prefix. */ /* It's an error if we have got a prefix. */
@ -2341,7 +2342,7 @@ btst_nop_op (unsigned short inst, inst_env_type *inst_env)
/* Clears the status flags in inst_env. */ /* Clears the status flags in inst_env. */
void static void
clearf_di_op (unsigned short inst, inst_env_type *inst_env) clearf_di_op (unsigned short inst, inst_env_type *inst_env)
{ {
/* It's an error if we have got a prefix. */ /* It's an error if we have got a prefix. */
@ -2359,7 +2360,7 @@ clearf_di_op (unsigned short inst, inst_env_type *inst_env)
/* Handles the CLEAR instruction if it's in register mode. */ /* Handles the CLEAR instruction if it's in register mode. */
void static void
reg_mode_clear_op (unsigned short inst, inst_env_type *inst_env) reg_mode_clear_op (unsigned short inst, inst_env_type *inst_env)
{ {
/* Check if the target is the PC. */ /* Check if the target is the PC. */
@ -2396,7 +2397,7 @@ reg_mode_clear_op (unsigned short inst, inst_env_type *inst_env)
/* Handles the TEST instruction if it's in register mode. */ /* Handles the TEST instruction if it's in register mode. */
void static void
reg_mode_test_op (unsigned short inst, inst_env_type *inst_env) reg_mode_test_op (unsigned short inst, inst_env_type *inst_env)
{ {
/* It's an error if we have got a prefix. */ /* It's an error if we have got a prefix. */
@ -2415,7 +2416,7 @@ reg_mode_test_op (unsigned short inst, inst_env_type *inst_env)
/* Handles the CLEAR and TEST instruction if the instruction isn't /* Handles the CLEAR and TEST instruction if the instruction isn't
in register mode. */ in register mode. */
void static void
none_reg_mode_clear_test_op (unsigned short inst, inst_env_type *inst_env) none_reg_mode_clear_test_op (unsigned short inst, inst_env_type *inst_env)
{ {
/* Check if we are in a prefix mode. */ /* Check if we are in a prefix mode. */
@ -2440,7 +2441,7 @@ none_reg_mode_clear_test_op (unsigned short inst, inst_env_type *inst_env)
/* Checks that the PC isn't the destination register or the instructions has /* Checks that the PC isn't the destination register or the instructions has
a prefix. */ a prefix. */
void static void
dstep_logshift_mstep_neg_not_op (unsigned short inst, inst_env_type *inst_env) dstep_logshift_mstep_neg_not_op (unsigned short inst, inst_env_type *inst_env)
{ {
/* It's invalid to have the PC as the destination. The instruction can't /* It's invalid to have the PC as the destination. The instruction can't
@ -2459,7 +2460,7 @@ dstep_logshift_mstep_neg_not_op (unsigned short inst, inst_env_type *inst_env)
/* Checks that the instruction doesn't have a prefix. */ /* Checks that the instruction doesn't have a prefix. */
void static void
break_op (unsigned short inst, inst_env_type *inst_env) break_op (unsigned short inst, inst_env_type *inst_env)
{ {
/* The instruction can't have a prefix. */ /* The instruction can't have a prefix. */
@ -2478,7 +2479,7 @@ break_op (unsigned short inst, inst_env_type *inst_env)
/* Checks that the PC isn't the destination register and that the instruction /* Checks that the PC isn't the destination register and that the instruction
doesn't have a prefix. */ doesn't have a prefix. */
void static void
scc_op (unsigned short inst, inst_env_type *inst_env) scc_op (unsigned short inst, inst_env_type *inst_env)
{ {
/* It's invalid to have the PC as the destination. The instruction can't /* It's invalid to have the PC as the destination. The instruction can't
@ -2497,7 +2498,7 @@ scc_op (unsigned short inst, inst_env_type *inst_env)
/* Handles the register mode JUMP instruction. */ /* Handles the register mode JUMP instruction. */
void static void
reg_mode_jump_op (unsigned short inst, inst_env_type *inst_env) reg_mode_jump_op (unsigned short inst, inst_env_type *inst_env)
{ {
/* It's invalid to do a JUMP in a delay slot. The mode is register, so /* It's invalid to do a JUMP in a delay slot. The mode is register, so
@ -2518,7 +2519,8 @@ reg_mode_jump_op (unsigned short inst, inst_env_type *inst_env)
/* Handles the JUMP instruction for all modes except register. */ /* Handles the JUMP instruction for all modes except register. */
void none_reg_mode_jump_op (unsigned short inst, inst_env_type *inst_env) static void
none_reg_mode_jump_op (unsigned short inst, inst_env_type *inst_env)
{ {
unsigned long newpc; unsigned long newpc;
CORE_ADDR address; CORE_ADDR address;
@ -2562,7 +2564,7 @@ void none_reg_mode_jump_op (unsigned short inst, inst_env_type *inst_env)
/* Handles moves to special registers (aka P-register) for all modes. */ /* Handles moves to special registers (aka P-register) for all modes. */
void static void
move_to_preg_op (unsigned short inst, inst_env_type *inst_env) move_to_preg_op (unsigned short inst, inst_env_type *inst_env)
{ {
if (inst_env->prefix_found) if (inst_env->prefix_found)
@ -2617,7 +2619,7 @@ move_to_preg_op (unsigned short inst, inst_env_type *inst_env)
/* Handles moves from special registers (aka P-register) for all modes /* Handles moves from special registers (aka P-register) for all modes
except register. */ except register. */
void static void
none_reg_mode_move_from_preg_op (unsigned short inst, inst_env_type *inst_env) none_reg_mode_move_from_preg_op (unsigned short inst, inst_env_type *inst_env)
{ {
if (inst_env->prefix_found) if (inst_env->prefix_found)
@ -2672,7 +2674,7 @@ none_reg_mode_move_from_preg_op (unsigned short inst, inst_env_type *inst_env)
/* Handles moves from special registers (aka P-register) when the mode /* Handles moves from special registers (aka P-register) when the mode
is register. */ is register. */
void static void
reg_mode_move_from_preg_op (unsigned short inst, inst_env_type *inst_env) reg_mode_move_from_preg_op (unsigned short inst, inst_env_type *inst_env)
{ {
/* Register mode move from special register can't have a prefix. */ /* Register mode move from special register can't have a prefix. */
@ -2707,7 +2709,7 @@ reg_mode_move_from_preg_op (unsigned short inst, inst_env_type *inst_env)
/* Handles the MOVEM from memory to general register instruction. */ /* Handles the MOVEM from memory to general register instruction. */
void static void
move_mem_to_reg_movem_op (unsigned short inst, inst_env_type *inst_env) move_mem_to_reg_movem_op (unsigned short inst, inst_env_type *inst_env)
{ {
if (inst_env->prefix_found) if (inst_env->prefix_found)
@ -2764,7 +2766,7 @@ move_mem_to_reg_movem_op (unsigned short inst, inst_env_type *inst_env)
/* Handles the MOVEM to memory from general register instruction. */ /* Handles the MOVEM to memory from general register instruction. */
void static void
move_reg_to_mem_movem_op (unsigned short inst, inst_env_type *inst_env) move_reg_to_mem_movem_op (unsigned short inst, inst_env_type *inst_env)
{ {
if (inst_env->prefix_found) if (inst_env->prefix_found)
@ -2803,7 +2805,7 @@ move_reg_to_mem_movem_op (unsigned short inst, inst_env_type *inst_env)
/* Handles the pop instruction to a general register. /* Handles the pop instruction to a general register.
POP is a assembler macro for MOVE.D [SP+], Rd. */ POP is a assembler macro for MOVE.D [SP+], Rd. */
void static void
reg_pop_op (unsigned short inst, inst_env_type *inst_env) reg_pop_op (unsigned short inst, inst_env_type *inst_env)
{ {
/* POP can't have a prefix. */ /* POP can't have a prefix. */
@ -2831,7 +2833,7 @@ reg_pop_op (unsigned short inst, inst_env_type *inst_env)
/* Handles moves from register to memory. */ /* Handles moves from register to memory. */
void static void
move_reg_to_mem_index_inc_op (unsigned short inst, inst_env_type *inst_env) move_reg_to_mem_index_inc_op (unsigned short inst, inst_env_type *inst_env)
{ {
/* Check if we have a prefix. */ /* Check if we have a prefix. */
@ -2860,7 +2862,7 @@ move_reg_to_mem_index_inc_op (unsigned short inst, inst_env_type *inst_env)
/* Handles the intructions that's not yet implemented, by setting /* Handles the intructions that's not yet implemented, by setting
inst_env->invalid to true. */ inst_env->invalid to true. */
void static void
not_implemented_op (unsigned short inst, inst_env_type *inst_env) not_implemented_op (unsigned short inst, inst_env_type *inst_env)
{ {
inst_env->invalid = 1; inst_env->invalid = 1;
@ -2868,7 +2870,7 @@ not_implemented_op (unsigned short inst, inst_env_type *inst_env)
/* Handles the XOR instruction. */ /* Handles the XOR instruction. */
void static void
xor_op (unsigned short inst, inst_env_type *inst_env) xor_op (unsigned short inst, inst_env_type *inst_env)
{ {
/* XOR can't have a prefix. */ /* XOR can't have a prefix. */
@ -2897,7 +2899,7 @@ xor_op (unsigned short inst, inst_env_type *inst_env)
/* Handles the MULS instruction. */ /* Handles the MULS instruction. */
void static void
muls_op (unsigned short inst, inst_env_type *inst_env) muls_op (unsigned short inst, inst_env_type *inst_env)
{ {
/* MULS/U can't have a prefix. */ /* MULS/U can't have a prefix. */
@ -2921,7 +2923,7 @@ muls_op (unsigned short inst, inst_env_type *inst_env)
/* Handles the MULU instruction. */ /* Handles the MULU instruction. */
void static void
mulu_op (unsigned short inst, inst_env_type *inst_env) mulu_op (unsigned short inst, inst_env_type *inst_env)
{ {
/* MULS/U can't have a prefix. */ /* MULS/U can't have a prefix. */
@ -2946,7 +2948,7 @@ mulu_op (unsigned short inst, inst_env_type *inst_env)
/* Calculate the result of the instruction for ADD, SUB, CMP AND, OR and MOVE. /* Calculate the result of the instruction for ADD, SUB, CMP AND, OR and MOVE.
The MOVE instruction is the move from source to register. */ The MOVE instruction is the move from source to register. */
void static void
add_sub_cmp_and_or_move_action (unsigned short inst, inst_env_type *inst_env, add_sub_cmp_and_or_move_action (unsigned short inst, inst_env_type *inst_env,
unsigned long source1, unsigned long source2) unsigned long source1, unsigned long source2)
{ {
@ -3028,7 +3030,7 @@ add_sub_cmp_and_or_move_action (unsigned short inst, inst_env_type *inst_env,
is zero extend then the value is extended with zero. If instead the mode is zero extend then the value is extended with zero. If instead the mode
is signed extend the sign bit of the value is taken into consideration. */ is signed extend the sign bit of the value is taken into consideration. */
unsigned long static unsigned long
do_sign_or_zero_extend (unsigned long value, unsigned short *inst) do_sign_or_zero_extend (unsigned long value, unsigned short *inst)
{ {
/* The size can be either byte or word, check which one it is. /* The size can be either byte or word, check which one it is.
@ -3066,7 +3068,7 @@ do_sign_or_zero_extend (unsigned long value, unsigned short *inst)
/* Handles the register mode for the ADD, SUB, CMP, AND, OR and MOVE /* Handles the register mode for the ADD, SUB, CMP, AND, OR and MOVE
instruction. The MOVE instruction is the move from source to register. */ instruction. The MOVE instruction is the move from source to register. */
void static void
reg_mode_add_sub_cmp_and_or_move_op (unsigned short inst, reg_mode_add_sub_cmp_and_or_move_op (unsigned short inst,
inst_env_type *inst_env) inst_env_type *inst_env)
{ {
@ -3111,7 +3113,7 @@ reg_mode_add_sub_cmp_and_or_move_op (unsigned short inst,
the size of the operation. If the instruction is a zero or signed the size of the operation. If the instruction is a zero or signed
extend instruction, the size field is changed in instruction. */ extend instruction, the size field is changed in instruction. */
unsigned long static unsigned long
get_data_from_address (unsigned short *inst, CORE_ADDR address) get_data_from_address (unsigned short *inst, CORE_ADDR address)
{ {
int size = cris_get_size (*inst); int size = cris_get_size (*inst);
@ -3139,7 +3141,7 @@ get_data_from_address (unsigned short *inst, CORE_ADDR address)
/* Handles the assign addresing mode for the ADD, SUB, CMP, AND, OR and MOVE /* Handles the assign addresing mode for the ADD, SUB, CMP, AND, OR and MOVE
instructions. The MOVE instruction is the move from source to register. */ instructions. The MOVE instruction is the move from source to register. */
void static void
handle_prefix_assign_mode_for_aritm_op (unsigned short inst, handle_prefix_assign_mode_for_aritm_op (unsigned short inst,
inst_env_type *inst_env) inst_env_type *inst_env)
{ {
@ -3168,7 +3170,7 @@ handle_prefix_assign_mode_for_aritm_op (unsigned short inst,
OR instructions. Note that for this to work as expected, the calling OR instructions. Note that for this to work as expected, the calling
function must have made sure that there is a prefix to this instruction. */ function must have made sure that there is a prefix to this instruction. */
void static void
three_operand_add_sub_cmp_and_or_op (unsigned short inst, three_operand_add_sub_cmp_and_or_op (unsigned short inst,
inst_env_type *inst_env) inst_env_type *inst_env)
{ {
@ -3196,7 +3198,7 @@ three_operand_add_sub_cmp_and_or_op (unsigned short inst,
/* Handles the index addresing mode for the ADD, SUB, CMP, AND, OR and MOVE /* Handles the index addresing mode for the ADD, SUB, CMP, AND, OR and MOVE
instructions. The MOVE instruction is the move from source to register. */ instructions. The MOVE instruction is the move from source to register. */
void static void
handle_prefix_index_mode_for_aritm_op (unsigned short inst, handle_prefix_index_mode_for_aritm_op (unsigned short inst,
inst_env_type *inst_env) inst_env_type *inst_env)
{ {
@ -3224,7 +3226,7 @@ handle_prefix_index_mode_for_aritm_op (unsigned short inst,
CMP, AND OR and MOVE instruction. The MOVE instruction is the move from CMP, AND OR and MOVE instruction. The MOVE instruction is the move from
source to register. */ source to register. */
void static void
handle_inc_and_index_mode_for_aritm_op (unsigned short inst, handle_inc_and_index_mode_for_aritm_op (unsigned short inst,
inst_env_type *inst_env) inst_env_type *inst_env)
{ {
@ -3274,7 +3276,7 @@ handle_inc_and_index_mode_for_aritm_op (unsigned short inst,
/* Handles the two-operand addressing mode, all modes except register, for /* Handles the two-operand addressing mode, all modes except register, for
the ADD, SUB CMP, AND and OR instruction. */ the ADD, SUB CMP, AND and OR instruction. */
void static void
none_reg_mode_add_sub_cmp_and_or_move_op (unsigned short inst, none_reg_mode_add_sub_cmp_and_or_move_op (unsigned short inst,
inst_env_type *inst_env) inst_env_type *inst_env)
{ {
@ -3303,7 +3305,7 @@ none_reg_mode_add_sub_cmp_and_or_move_op (unsigned short inst,
/* Handles the quick addressing mode for the ADD and SUB instruction. */ /* Handles the quick addressing mode for the ADD and SUB instruction. */
void static void
quick_mode_add_sub_op (unsigned short inst, inst_env_type *inst_env) quick_mode_add_sub_op (unsigned short inst, inst_env_type *inst_env)
{ {
unsigned long operand1; unsigned long operand1;
@ -3343,7 +3345,7 @@ quick_mode_add_sub_op (unsigned short inst, inst_env_type *inst_env)
/* Handles the quick addressing mode for the CMP, AND and OR instruction. */ /* Handles the quick addressing mode for the CMP, AND and OR instruction. */
void static void
quick_mode_and_cmp_move_or_op (unsigned short inst, inst_env_type *inst_env) quick_mode_and_cmp_move_or_op (unsigned short inst, inst_env_type *inst_env)
{ {
unsigned long operand1; unsigned long operand1;
@ -3389,8 +3391,9 @@ quick_mode_and_cmp_move_or_op (unsigned short inst, inst_env_type *inst_env)
/* Translate op_type to a function and call it. */ /* Translate op_type to a function and call it. */
static void cris_gdb_func (enum cris_op_type op_type, unsigned short inst, static void
inst_env_type *inst_env) cris_gdb_func (enum cris_op_type op_type, unsigned short inst,
inst_env_type *inst_env)
{ {
switch (op_type) switch (op_type)
{ {
@ -3562,7 +3565,7 @@ typedef elf_greg_t elf_gregset_t[35];
/* Unpack an elf_gregset_t into GDB's register cache. */ /* Unpack an elf_gregset_t into GDB's register cache. */
void static void
supply_gregset (elf_gregset_t *gregsetp) supply_gregset (elf_gregset_t *gregsetp)
{ {
int i; int i;
@ -3627,7 +3630,7 @@ static struct core_fns cris_elf_core_fns =
See gdb/solib-svr4.h for an explanation of these fields. */ See gdb/solib-svr4.h for an explanation of these fields. */
struct link_map_offsets * static struct link_map_offsets *
cris_linux_svr4_fetch_link_map_offsets (void) cris_linux_svr4_fetch_link_map_offsets (void)
{ {
static struct link_map_offsets lmo; static struct link_map_offsets lmo;
@ -3855,6 +3858,8 @@ cris_fpless_backtrace (char *noargs, int from_tty)
} }
} }
extern initialize_file_ftype _initialize_cris_tdep; /* -Wmissing-prototypes */
void void
_initialize_cris_tdep (void) _initialize_cris_tdep (void)
{ {

View File

@ -160,6 +160,8 @@ dbug_open (char *args, int from_tty)
monitor_open (args, &dbug_cmds, from_tty); monitor_open (args, &dbug_cmds, from_tty);
} }
extern initialize_file_ftype _initialize_dbug_rom; /* -Wmissing-prototypes */
void void
_initialize_dbug_rom (void) _initialize_dbug_rom (void)
{ {

View File

@ -1232,7 +1232,7 @@ read_dbx_dynamic_symtab (struct objfile *objfile)
} }
#ifdef SOFUN_ADDRESS_MAYBE_MISSING #ifdef SOFUN_ADDRESS_MAYBE_MISSING
CORE_ADDR static CORE_ADDR
find_stab_function_addr (char *namestring, char *filename, find_stab_function_addr (char *namestring, char *filename,
struct objfile *objfile) struct objfile *objfile)
{ {

View File

@ -142,6 +142,8 @@ dink32_open (char *args, int from_tty)
monitor_open (args, &dink32_cmds, from_tty); monitor_open (args, &dink32_cmds, from_tty);
} }
extern initialize_file_ftype _initialize_dink32_rom; /* -Wmissing-prototypes */
void void
_initialize_dink32_rom (void) _initialize_dink32_rom (void)
{ {

View File

@ -136,7 +136,7 @@ frame_base_find_by_pc (struct gdbarch *gdbarch, CORE_ADDR pc)
return table->default_base; return table->default_base;
} }
extern initialize_file_ftype _initialize_frame_base; /* -Wmissing-protypes */ extern initialize_file_ftype _initialize_frame_base; /* -Wmissing-prototypes */
void void
_initialize_frame_base (void) _initialize_frame_base (void)

View File

@ -1199,6 +1199,8 @@ h8300_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
return gdbarch; return gdbarch;
} }
extern initialize_file_ftype _initialize_h8300_tdep; /* -Wmissing-prototypes */
void void
_initialize_h8300_tdep (void) _initialize_h8300_tdep (void)
{ {

View File

@ -253,7 +253,7 @@ ia64_register_virtual_size (int reg)
/* Return true iff register N's virtual format is different from /* Return true iff register N's virtual format is different from
its raw format. */ its raw format. */
int static int
ia64_register_convertible (int nr) ia64_register_convertible (int nr)
{ {
return (IA64_FR0_REGNUM <= nr && nr <= IA64_FR127_REGNUM); return (IA64_FR0_REGNUM <= nr && nr <= IA64_FR127_REGNUM);
@ -265,7 +265,7 @@ const struct floatformat floatformat_ia64_ext =
floatformat_intbit_yes floatformat_intbit_yes
}; };
void static void
ia64_register_convert_to_virtual (int regnum, struct type *type, ia64_register_convert_to_virtual (int regnum, struct type *type,
char *from, char *to) char *from, char *to)
{ {
@ -279,7 +279,7 @@ ia64_register_convert_to_virtual (int regnum, struct type *type,
error("ia64_register_convert_to_virtual called with non floating point register number"); error("ia64_register_convert_to_virtual called with non floating point register number");
} }
void static void
ia64_register_convert_to_raw (struct type *type, int regnum, ia64_register_convert_to_raw (struct type *type, int regnum,
char *from, char *to) char *from, char *to)
{ {
@ -635,7 +635,7 @@ ia64_read_fp (void)
return read_register (SP_REGNUM); return read_register (SP_REGNUM);
} }
CORE_ADDR static CORE_ADDR
ia64_read_pc (ptid_t ptid) ia64_read_pc (ptid_t ptid)
{ {
CORE_ADDR psr_value = read_register_pid (IA64_PSR_REGNUM, ptid); CORE_ADDR psr_value = read_register_pid (IA64_PSR_REGNUM, ptid);
@ -645,7 +645,7 @@ ia64_read_pc (ptid_t ptid)
return pc_value | (slot_num * SLOT_MULTIPLIER); return pc_value | (slot_num * SLOT_MULTIPLIER);
} }
void static void
ia64_write_pc (CORE_ADDR new_pc, ptid_t ptid) ia64_write_pc (CORE_ADDR new_pc, ptid_t ptid)
{ {
int slot_num = (int) (new_pc & 0xf) / SLOT_MULTIPLIER; int slot_num = (int) (new_pc & 0xf) / SLOT_MULTIPLIER;
@ -703,7 +703,7 @@ rse_address_add(CORE_ADDR addr, int nslots)
represent the frame chain as the end of the previous frame instead represent the frame chain as the end of the previous frame instead
of the beginning. */ of the beginning. */
CORE_ADDR static CORE_ADDR
ia64_frame_chain (struct frame_info *frame) ia64_frame_chain (struct frame_info *frame)
{ {
if ((get_frame_type (frame) == SIGTRAMP_FRAME)) if ((get_frame_type (frame) == SIGTRAMP_FRAME))
@ -723,7 +723,7 @@ ia64_frame_chain (struct frame_info *frame)
} }
} }
CORE_ADDR static CORE_ADDR
ia64_frame_saved_pc (struct frame_info *frame) ia64_frame_saved_pc (struct frame_info *frame)
{ {
if ((get_frame_type (frame) == SIGTRAMP_FRAME)) if ((get_frame_type (frame) == SIGTRAMP_FRAME))
@ -1234,7 +1234,7 @@ ia64_skip_prologue (CORE_ADDR pc)
return examine_prologue (pc, pc+1024, 0); return examine_prologue (pc, pc+1024, 0);
} }
void static void
ia64_frame_init_saved_regs (struct frame_info *frame) ia64_frame_init_saved_regs (struct frame_info *frame)
{ {
if (get_frame_saved_regs (frame)) if (get_frame_saved_regs (frame))
@ -1288,7 +1288,7 @@ ia64_frame_init_saved_regs (struct frame_info *frame)
} }
} }
void static void
ia64_get_saved_register (char *raw_buffer, ia64_get_saved_register (char *raw_buffer,
int *optimized, int *optimized,
CORE_ADDR *addrp, CORE_ADDR *addrp,
@ -1520,7 +1520,7 @@ ia64_extract_struct_value_address (char *regbuf)
return struct_return_address; return struct_return_address;
} }
void static void
ia64_store_struct_return (CORE_ADDR addr, CORE_ADDR sp) ia64_store_struct_return (CORE_ADDR addr, CORE_ADDR sp)
{ {
/* FIXME: See above. */ /* FIXME: See above. */
@ -1541,7 +1541,7 @@ ia64_saved_pc_after_call (struct frame_info *frame)
return read_register (IA64_BR0_REGNUM); return read_register (IA64_BR0_REGNUM);
} }
CORE_ADDR static CORE_ADDR
ia64_frame_args_address (struct frame_info *frame) ia64_frame_args_address (struct frame_info *frame)
{ {
/* frame->frame points at the SP for this frame; But we want the start /* frame->frame points at the SP for this frame; But we want the start
@ -1549,7 +1549,7 @@ ia64_frame_args_address (struct frame_info *frame)
return ia64_frame_chain (frame); return ia64_frame_chain (frame);
} }
CORE_ADDR static CORE_ADDR
ia64_frame_locals_address (struct frame_info *frame) ia64_frame_locals_address (struct frame_info *frame)
{ {
/* frame->frame points at the SP for this frame; But we want the start /* frame->frame points at the SP for this frame; But we want the start
@ -1557,7 +1557,7 @@ ia64_frame_locals_address (struct frame_info *frame)
return ia64_frame_chain (frame); return ia64_frame_chain (frame);
} }
void static void
ia64_init_extra_frame_info (int fromleaf, struct frame_info *frame) ia64_init_extra_frame_info (int fromleaf, struct frame_info *frame)
{ {
CORE_ADDR bsp, cfm; CORE_ADDR bsp, cfm;
@ -1856,7 +1856,7 @@ find_func_descr (CORE_ADDR faddr, CORE_ADDR *fdaptr)
return fdesc; return fdesc;
} }
CORE_ADDR static CORE_ADDR
ia64_push_arguments (int nargs, struct value **args, CORE_ADDR sp, ia64_push_arguments (int nargs, struct value **args, CORE_ADDR sp,
int struct_return, CORE_ADDR struct_addr) int struct_return, CORE_ADDR struct_addr)
{ {
@ -2021,7 +2021,7 @@ ia64_push_arguments (int nargs, struct value **args, CORE_ADDR sp,
return sp; return sp;
} }
CORE_ADDR static CORE_ADDR
ia64_push_return_address (CORE_ADDR pc, CORE_ADDR sp) ia64_push_return_address (CORE_ADDR pc, CORE_ADDR sp)
{ {
CORE_ADDR global_pointer = FIND_GLOBAL_POINTER (pc); CORE_ADDR global_pointer = FIND_GLOBAL_POINTER (pc);
@ -2033,7 +2033,7 @@ ia64_push_return_address (CORE_ADDR pc, CORE_ADDR sp)
return sp; return sp;
} }
void static void
ia64_store_return_value (struct type *type, char *valbuf) ia64_store_return_value (struct type *type, char *valbuf)
{ {
if (TYPE_CODE (type) == TYPE_CODE_FLT) if (TYPE_CODE (type) == TYPE_CODE_FLT)
@ -2047,7 +2047,7 @@ ia64_store_return_value (struct type *type, char *valbuf)
valbuf, TYPE_LENGTH (type)); valbuf, TYPE_LENGTH (type));
} }
void static void
ia64_pop_frame (void) ia64_pop_frame (void)
{ {
generic_pop_current_frame (ia64_pop_frame_regular); generic_pop_current_frame (ia64_pop_frame_regular);
@ -2324,6 +2324,8 @@ ia64_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
return gdbarch; return gdbarch;
} }
extern initialize_file_ftype _initialize_ia64_tdep; /* -Wmissing-prototypes */
void void
_initialize_ia64_tdep (void) _initialize_ia64_tdep (void)
{ {

View File

@ -1051,7 +1051,7 @@ m68hc11_push_arguments (int nargs,
/* Return a location where we can set a breakpoint that will be hit /* Return a location where we can set a breakpoint that will be hit
when an inferior function call returns. */ when an inferior function call returns. */
CORE_ADDR static CORE_ADDR
m68hc11_call_dummy_address (void) m68hc11_call_dummy_address (void)
{ {
return entry_point_address (); return entry_point_address ();
@ -1419,6 +1419,8 @@ m68hc11_gdbarch_init (struct gdbarch_info info,
return gdbarch; return gdbarch;
} }
extern initialize_file_ftype _initialize_m68hc11_tdep; /* -Wmissing-prototypes */
void void
_initialize_m68hc11_tdep (void) _initialize_m68hc11_tdep (void)
{ {

View File

@ -996,6 +996,8 @@ m68k_dump_tdep (struct gdbarch *current_gdbarch, struct ui_file *file)
return; return;
} }
extern initialize_file_ftype _initialize_m68k_tdep; /* -Wmissing-prototypes */
void void
_initialize_m68k_tdep (void) _initialize_m68k_tdep (void)
{ {

View File

@ -222,7 +222,7 @@ macro_list_command (char *exp, int from_tty)
/* Initializing the `macrocmd' module. */ /* Initializing the `macrocmd' module. */
extern initialize_file_ftype _initialize_macrocmd; extern initialize_file_ftype _initialize_macrocmd; /* -Wmissing-prototypes */
void void
_initialize_macrocmd (void) _initialize_macrocmd (void)

View File

@ -30,51 +30,10 @@
#include "gdb_string.h" #include "gdb_string.h"
#include "disasm.h" #include "disasm.h"
/* Functions declared and used only in this file */ static CORE_ADDR mcore_analyze_prologue (struct frame_info *fi, CORE_ADDR pc,
int skip_prologue);
static CORE_ADDR mcore_analyze_prologue (struct frame_info *fi, CORE_ADDR pc, int skip_prologue);
static struct frame_info *analyze_dummy_frame (CORE_ADDR pc, CORE_ADDR frame);
static int get_insn (CORE_ADDR pc); static int get_insn (CORE_ADDR pc);
/* Functions exported from this file */
int mcore_use_struct_convention (int gcc_p, struct type *type);
void _initialize_mcore (void);
void mcore_init_extra_frame_info (int fromleaf, struct frame_info *fi);
CORE_ADDR mcore_frame_saved_pc (struct frame_info *fi);
CORE_ADDR mcore_find_callers_reg (struct frame_info *fi, int regnum);
CORE_ADDR mcore_frame_args_address (struct frame_info *fi);
CORE_ADDR mcore_frame_locals_address (struct frame_info *fi);
CORE_ADDR mcore_push_return_address (CORE_ADDR pc, CORE_ADDR sp);
CORE_ADDR mcore_push_arguments (int nargs, struct value ** args, CORE_ADDR sp,
int struct_return, CORE_ADDR struct_addr);
void mcore_pop_frame ();
CORE_ADDR mcore_skip_prologue (CORE_ADDR pc);
CORE_ADDR mcore_frame_chain (struct frame_info *fi);
const unsigned char *mcore_breakpoint_from_pc (CORE_ADDR * bp_addr, int *bp_size);
int mcore_use_struct_convention (int gcc_p, struct type *type);
void mcore_store_return_value (struct type *type, char *valbuf);
CORE_ADDR mcore_extract_struct_value_address (char *regbuf);
void mcore_extract_return_value (struct type *type, char *regbuf, char *valbuf);
#ifdef MCORE_DEBUG #ifdef MCORE_DEBUG
int mcore_debug = 0; int mcore_debug = 0;
#endif #endif
@ -739,7 +698,7 @@ mcore_frame_locals_address (struct frame_info * fi)
/* Return the frame pointer in use at address PC. */ /* Return the frame pointer in use at address PC. */
void static void
mcore_virtual_frame_pointer (CORE_ADDR pc, int *reg, LONGEST *offset) mcore_virtual_frame_pointer (CORE_ADDR pc, int *reg, LONGEST *offset)
{ {
struct frame_info *dummy = analyze_dummy_frame (pc, 0); struct frame_info *dummy = analyze_dummy_frame (pc, 0);
@ -793,7 +752,7 @@ mcore_frame_saved_pc (struct frame_info * fi)
/* This routine gets called when either the user uses the "return" /* This routine gets called when either the user uses the "return"
command, or the call dummy breakpoint gets hit. */ command, or the call dummy breakpoint gets hit. */
void static void
mcore_pop_frame (void) mcore_pop_frame (void)
{ {
int rn; int rn;
@ -1169,6 +1128,8 @@ mcore_dump_tdep (struct gdbarch *current_gdbarch, struct ui_file *file)
} }
extern initialize_file_ftype _initialize_mcore_tdep; /* -Wmissing-prototypes */
void void
_initialize_mcore_tdep (void) _initialize_mcore_tdep (void)
{ {

View File

@ -6401,6 +6401,8 @@ mips_dump_tdep (struct gdbarch *current_gdbarch, struct ui_file *file)
_PROC_MAGIC_); _PROC_MAGIC_);
} }
extern initialize_file_ftype _initialize_mips_tdep; /* -Wmissing-prototypes */
void void
_initialize_mips_tdep (void) _initialize_mips_tdep (void)
{ {

View File

@ -1054,12 +1054,11 @@ monitor_wait_cleanup (void *old_timeout)
void static void
monitor_wait_filter (char *buf, monitor_wait_filter (char *buf,
int bufmax, int bufmax,
int *ext_resp_len, int *ext_resp_len,
struct target_waitstatus *status struct target_waitstatus *status)
)
{ {
int resp_len; int resp_len;
do do
@ -2335,6 +2334,8 @@ init_monitor_ops (struct target_ops *ops)
/* Define additional commands that are usually only used by monitors. */ /* Define additional commands that are usually only used by monitors. */
extern initialize_file_ftype _initialize_remote_monitors; /* -Wmissing-prototypes */
void void
_initialize_remote_monitors (void) _initialize_remote_monitors (void)
{ {

View File

@ -612,6 +612,8 @@ ns32k_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
return (gdbarch); return (gdbarch);
} }
extern initialize_file_ftype _initialize_ns32k_tdep; /* -Wmissing-prototypes */
void void
_initialize_ns32k_tdep (void) _initialize_ns32k_tdep (void)
{ {

View File

@ -61,6 +61,8 @@ ns32knbsd_aout_osabi_sniffer (bfd *abfd)
return GDB_OSABI_UNKNOWN; return GDB_OSABI_UNKNOWN;
} }
extern initialize_file_ftype _initialize_ns32knbsd_tdep; /* -Wmissing-prototypes */
void void
_initialize_ns32knbsd_tdep (void) _initialize_ns32knbsd_tdep (void)
{ {

View File

@ -1710,7 +1710,7 @@ find_objc_msgcall (CORE_ADDR pc, CORE_ADDR *new_pc)
return 0; return 0;
} }
extern initialize_file_ftype _initialize_objc_language; extern initialize_file_ftype _initialize_objc_language; /* -Wmissing-prototypes */
void void
_initialize_objc_language (void) _initialize_objc_language (void)

View File

@ -1365,6 +1365,8 @@ bdm_read_register_command (char *args, int from_tty)
} }
extern initialize_file_ftype _initialize_remote_ocd; /* -Wmissing-prototypes */
void void
_initialize_remote_ocd (void) _initialize_remote_ocd (void)
{ {

View File

@ -346,6 +346,8 @@ a wiggler, specify wiggler and then the port it is connected to\n\
bdm_ppc_ops.to_magic = OPS_MAGIC; bdm_ppc_ops.to_magic = OPS_MAGIC;
} /* init_bdm_ppc_ops */ } /* init_bdm_ppc_ops */
extern initialize_file_ftype _initialize_bdm_ppc; /* -Wmissing-prototypes */
void void
_initialize_bdm_ppc (void) _initialize_bdm_ppc (void)
{ {

View File

@ -196,6 +196,8 @@ ppcbug_open1 (char *args, int from_tty)
monitor_open (args, &ppcbug_cmds1, from_tty); monitor_open (args, &ppcbug_cmds1, from_tty);
} }
extern initialize_file_ftype _initialize_ppcbug_rom; /* -Wmissing-prototypes */
void void
_initialize_ppcbug_rom (void) _initialize_ppcbug_rom (void)
{ {

View File

@ -781,7 +781,7 @@ gbyte (void)
return (high << 4) + low; return (high << 4) + low;
} }
void static void
fetch_regs_from_dump (int (*nextchar) (), char *want) fetch_regs_from_dump (int (*nextchar) (), char *want)
{ {
int regno; int regno;
@ -1873,7 +1873,7 @@ why_stop (void)
/* Suck characters, if a string match, then return the strings index /* Suck characters, if a string match, then return the strings index
otherwise echo them. */ otherwise echo them. */
int static int
expect_n (char **strings) expect_n (char **strings)
{ {
char *(ptr[10]); char *(ptr[10]);
@ -2165,6 +2165,8 @@ target e7000 foobar";
e7000_ops.to_magic = OPS_MAGIC; e7000_ops.to_magic = OPS_MAGIC;
}; };
extern initialize_file_ftype _initialize_remote_e7000; /* -Wmissing-prototypes */
void void
_initialize_remote_e7000 (void) _initialize_remote_e7000 (void)
{ {

View File

@ -168,6 +168,8 @@ est_open (char *args, int from_tty)
monitor_open (args, &est_cmds, from_tty); monitor_open (args, &est_cmds, from_tty);
} }
extern initialize_file_ftype _initialize_est; /* -Wmissing-prototypes */
void void
_initialize_est (void) _initialize_est (void)
{ {

View File

@ -140,6 +140,8 @@ hms_open (char *args, int from_tty)
int write_dos_tick_delay; int write_dos_tick_delay;
extern initialize_file_ftype _initialize_remote_hms; /* -Wmissing-prototypes */
void void
_initialize_remote_hms (void) _initialize_remote_hms (void)
{ {

View File

@ -536,7 +536,7 @@ fputs_readable (const char *string, struct ui_file *file)
timed out. TIMEOUT specifies timeout value in seconds. timed out. TIMEOUT specifies timeout value in seconds.
*/ */
int static int
mips_expect_timeout (const char *string, int timeout) mips_expect_timeout (const char *string, int timeout)
{ {
const char *p = string; const char *p = string;
@ -592,7 +592,7 @@ mips_expect_timeout (const char *string, int timeout)
mips_expect_timeout if a different timeout value is needed. mips_expect_timeout if a different timeout value is needed.
*/ */
int static int
mips_expect (const char *string) mips_expect (const char *string)
{ {
return mips_expect_timeout (string, remote_timeout); return mips_expect_timeout (string, remote_timeout);
@ -600,7 +600,7 @@ mips_expect (const char *string)
/* Read the required number of characters into the given buffer (which /* Read the required number of characters into the given buffer (which
is assumed to be large enough). The only failure is a timeout. */ is assumed to be large enough). The only failure is a timeout. */
int static int
mips_getstring (char *string, int n) mips_getstring (char *string, int n)
{ {
char *p = string; char *p = string;
@ -1721,7 +1721,7 @@ mips_resume (ptid_t ptid, int step, enum target_signal siggnal)
/* Return the signal corresponding to SIG, where SIG is the number which /* Return the signal corresponding to SIG, where SIG is the number which
the MIPS protocol uses for the signal. */ the MIPS protocol uses for the signal. */
enum target_signal static enum target_signal
mips_signal_from_protocol (int sig) mips_signal_from_protocol (int sig)
{ {
/* We allow a few more signals than the IDT board actually returns, on /* We allow a few more signals than the IDT board actually returns, on
@ -2437,7 +2437,7 @@ calculate_mask (CORE_ADDR addr, int len)
/* Insert a hardware breakpoint. This works only on LSI targets, which /* Insert a hardware breakpoint. This works only on LSI targets, which
implement ordinary breakpoints using hardware facilities. */ implement ordinary breakpoints using hardware facilities. */
int static int
remote_mips_insert_hw_breakpoint (CORE_ADDR addr, char *contents_cache) remote_mips_insert_hw_breakpoint (CORE_ADDR addr, char *contents_cache)
{ {
if (strcmp (target_shortname, "lsi") == 0) if (strcmp (target_shortname, "lsi") == 0)
@ -2450,7 +2450,7 @@ remote_mips_insert_hw_breakpoint (CORE_ADDR addr, char *contents_cache)
/* Remove a hardware breakpoint. This works only on LSI targets, which /* Remove a hardware breakpoint. This works only on LSI targets, which
implement ordinary breakpoints using hardware facilities. */ implement ordinary breakpoints using hardware facilities. */
int static int
remote_mips_remove_hw_breakpoint (CORE_ADDR addr, char *contents_cache) remote_mips_remove_hw_breakpoint (CORE_ADDR addr, char *contents_cache)
{ {
if (strcmp (target_shortname, "lsi") == 0) if (strcmp (target_shortname, "lsi") == 0)
@ -3477,6 +3477,8 @@ pmon_command (char *args, int from_tty)
printf_filtered ("Received packet: %s\n", buf); printf_filtered ("Received packet: %s\n", buf);
} }
extern initialize_file_ftype _initialize_remote_mips; /* -Wmissing-prototypes */
void void
_initialize_remote_mips (void) _initialize_remote_mips (void)
{ {

View File

@ -146,7 +146,7 @@ arm_rdi_start_remote (char *dummy)
/* Helper callbacks for the "host interface" structure. RDI functions call /* Helper callbacks for the "host interface" structure. RDI functions call
these to forward output from the target system and so forth. */ these to forward output from the target system and so forth. */
void static void
voiddummy (void *dummy) voiddummy (void *dummy)
{ {
fprintf_unfiltered (gdb_stdout, "void dummy\n"); fprintf_unfiltered (gdb_stdout, "void dummy\n");
@ -1009,6 +1009,8 @@ rdilogenable_command (char *args, int from_tty)
" try y or n\n", args); " try y or n\n", args);
} }
extern initialize_file_ftype _initialize_remote_rdi; /* -Wmissing-prototypes */
void void
_initialize_remote_rdi (void) _initialize_remote_rdi (void)
{ {

View File

@ -374,7 +374,7 @@ rdp_init (int cold, int tty)
} }
void static void
send_rdp (char *template,...) send_rdp (char *template,...)
{ {
char buf[200]; char buf[200];
@ -1403,6 +1403,8 @@ init_remote_rdp_ops (void)
remote_rdp_ops.to_magic = OPS_MAGIC; remote_rdp_ops.to_magic = OPS_MAGIC;
} }
extern initialize_file_ftype _initialize_remote_rdp; /* -Wmissing-prototypes */
void void
_initialize_remote_rdp (void) _initialize_remote_rdp (void)
{ {

View File

@ -246,6 +246,8 @@ rom68k_open (char *args, int from_tty)
monitor_open (args, &rom68k_cmds, from_tty); monitor_open (args, &rom68k_cmds, from_tty);
} }
extern initialize_file_ftype _initialize_rom68k; /* -Wmissing-prototypes */
void void
_initialize_rom68k (void) _initialize_rom68k (void)
{ {

View File

@ -3029,7 +3029,7 @@ rs6000_info_powerpc_command (char *args, int from_tty)
/* Initialization code. */ /* Initialization code. */
extern initialize_file_ftype _initialize_rs6000_tdep; /* -Wmissing-protypes */ extern initialize_file_ftype _initialize_rs6000_tdep; /* -Wmissing-prototypes */
void void
_initialize_rs6000_tdep (void) _initialize_rs6000_tdep (void)

View File

@ -45,7 +45,7 @@
/* Number of bytes of storage in the actual machine representation /* Number of bytes of storage in the actual machine representation
for register N. */ for register N. */
int static int
s390_register_raw_size (int reg_nr) s390_register_raw_size (int reg_nr)
{ {
if (S390_FP0_REGNUM <= reg_nr if (S390_FP0_REGNUM <= reg_nr
@ -55,21 +55,21 @@ s390_register_raw_size (int reg_nr)
return 4; return 4;
} }
int static int
s390x_register_raw_size (int reg_nr) s390x_register_raw_size (int reg_nr)
{ {
return (reg_nr == S390_FPC_REGNUM) return (reg_nr == S390_FPC_REGNUM)
|| (reg_nr >= S390_FIRST_ACR && reg_nr <= S390_LAST_ACR) ? 4 : 8; || (reg_nr >= S390_FIRST_ACR && reg_nr <= S390_LAST_ACR) ? 4 : 8;
} }
int static int
s390_cannot_fetch_register (int regno) s390_cannot_fetch_register (int regno)
{ {
return (regno >= S390_FIRST_CR && regno < (S390_FIRST_CR + 9)) || return (regno >= S390_FIRST_CR && regno < (S390_FIRST_CR + 9)) ||
(regno >= (S390_FIRST_CR + 12) && regno <= S390_LAST_CR); (regno >= (S390_FIRST_CR + 12) && regno <= S390_LAST_CR);
} }
int static int
s390_register_byte (int reg_nr) s390_register_byte (int reg_nr)
{ {
if (reg_nr <= S390_GP_LAST_REGNUM) if (reg_nr <= S390_GP_LAST_REGNUM)
@ -119,7 +119,7 @@ struct frame_extra_info
static CORE_ADDR s390_frame_saved_pc_nofix (struct frame_info *fi); static CORE_ADDR s390_frame_saved_pc_nofix (struct frame_info *fi);
int static int
s390_readinstruction (bfd_byte instr[], CORE_ADDR at, s390_readinstruction (bfd_byte instr[], CORE_ADDR at,
struct disassemble_info *info) struct disassemble_info *info)
{ {
@ -150,7 +150,7 @@ s390_memset_extra_info (struct frame_extra_info *fextra_info)
const char * static const char *
s390_register_name (int reg_nr) s390_register_name (int reg_nr)
{ {
static char *register_names[] = { static char *register_names[] = {
@ -175,7 +175,7 @@ s390_register_name (int reg_nr)
int static int
s390_stab_reg_to_regnum (int regno) s390_stab_reg_to_regnum (int regno)
{ {
return regno >= 64 ? S390_PSWM_REGNUM - 64 : return regno >= 64 ? S390_PSWM_REGNUM - 64 :
@ -210,7 +210,7 @@ is_arg_reg (int regidx)
*/ */
int static int
s390_get_frame_info (CORE_ADDR pc, struct frame_extra_info *fextra_info, s390_get_frame_info (CORE_ADDR pc, struct frame_extra_info *fextra_info,
struct frame_info *fi, int init_extra_info) struct frame_info *fi, int init_extra_info)
{ {
@ -675,7 +675,7 @@ s390_get_frame_info (CORE_ADDR pc, struct frame_extra_info *fextra_info,
} }
int static int
s390_check_function_end (CORE_ADDR pc) s390_check_function_end (CORE_ADDR pc)
{ {
bfd_byte instr[S390_MAX_INSTR_SIZE]; bfd_byte instr[S390_MAX_INSTR_SIZE];
@ -767,7 +767,7 @@ s390_sniff_pc_function_start (CORE_ADDR pc, struct frame_info *fi)
CORE_ADDR static CORE_ADDR
s390_function_start (struct frame_info *fi) s390_function_start (struct frame_info *fi)
{ {
CORE_ADDR function_start = 0; CORE_ADDR function_start = 0;
@ -782,7 +782,7 @@ s390_function_start (struct frame_info *fi)
int static int
s390_frameless_function_invocation (struct frame_info *fi) s390_frameless_function_invocation (struct frame_info *fi)
{ {
struct frame_extra_info fextra_info, *fextra_info_ptr; struct frame_extra_info fextra_info, *fextra_info_ptr;
@ -881,7 +881,7 @@ s390_is_sigreturn (CORE_ADDR pc, struct frame_info *sighandler_fi,
for the moment. for the moment.
For some reason the blockframe.c calls us with fi->next->fromleaf For some reason the blockframe.c calls us with fi->next->fromleaf
so this seems of little use to us. */ so this seems of little use to us. */
CORE_ADDR static CORE_ADDR
s390_init_frame_pc_first (int next_fromleaf, struct frame_info *fi) s390_init_frame_pc_first (int next_fromleaf, struct frame_info *fi)
{ {
CORE_ADDR sigcaller_pc; CORE_ADDR sigcaller_pc;
@ -901,7 +901,7 @@ s390_init_frame_pc_first (int next_fromleaf, struct frame_info *fi)
return pc; return pc;
} }
void static void
s390_init_extra_frame_info (int fromleaf, struct frame_info *fi) s390_init_extra_frame_info (int fromleaf, struct frame_info *fi)
{ {
frame_extra_info_zalloc (fi, sizeof (struct frame_extra_info)); frame_extra_info_zalloc (fi, sizeof (struct frame_extra_info));
@ -916,7 +916,7 @@ s390_init_extra_frame_info (int fromleaf, struct frame_info *fi)
&FEXTRA_INFOP contains struct frame_extra_info; TDATAP can be NULL, &FEXTRA_INFOP contains struct frame_extra_info; TDATAP can be NULL,
in which case the framedata are read. */ in which case the framedata are read. */
void static void
s390_frame_init_saved_regs (struct frame_info *fi) s390_frame_init_saved_regs (struct frame_info *fi)
{ {
@ -970,7 +970,7 @@ s390_frame_saved_pc_nofix (struct frame_info *fi)
return 0; return 0;
} }
CORE_ADDR static CORE_ADDR
s390_frame_saved_pc (struct frame_info *fi) s390_frame_saved_pc (struct frame_info *fi)
{ {
CORE_ADDR saved_pc = 0, sig_pc; CORE_ADDR saved_pc = 0, sig_pc;
@ -999,7 +999,7 @@ s390_frame_saved_pc (struct frame_info *fi)
/* We want backtraces out of signal handlers so we don't set /* We want backtraces out of signal handlers so we don't set
(get_frame_type (thisframe) == SIGTRAMP_FRAME) to 1 */ (get_frame_type (thisframe) == SIGTRAMP_FRAME) to 1 */
CORE_ADDR static CORE_ADDR
s390_frame_chain (struct frame_info *thisframe) s390_frame_chain (struct frame_info *thisframe)
{ {
CORE_ADDR prev_fp = 0; CORE_ADDR prev_fp = 0;
@ -1079,7 +1079,7 @@ s390_frame_chain (struct frame_info *thisframe)
/* a given return value in `regbuf' with a type `valtype', extract and copy its /* a given return value in `regbuf' with a type `valtype', extract and copy its
value into `valbuf' */ value into `valbuf' */
void static void
s390_extract_return_value (struct type *valtype, char *regbuf, char *valbuf) s390_extract_return_value (struct type *valtype, char *regbuf, char *valbuf)
{ {
/* floats and doubles are returned in fpr0. fpr's have a size of 8 bytes. /* floats and doubles are returned in fpr0. fpr's have a size of 8 bytes.
@ -1137,7 +1137,7 @@ s390_promote_integer_argument (struct type *valtype, char *valbuf,
return (value); return (value);
} }
void static void
s390_store_return_value (struct type *valtype, char *valbuf) s390_store_return_value (struct type *valtype, char *valbuf)
{ {
int arglen; int arglen;
@ -1185,7 +1185,7 @@ gdb_print_insn_s390 (bfd_vma memaddr, disassemble_info * info)
/* Not the most efficent code in the world */ /* Not the most efficent code in the world */
int static int
s390_fp_regnum (void) s390_fp_regnum (void)
{ {
int regno = S390_SP_REGNUM; int regno = S390_SP_REGNUM;
@ -1200,7 +1200,7 @@ s390_fp_regnum (void)
return regno; return regno;
} }
CORE_ADDR static CORE_ADDR
s390_read_fp (void) s390_read_fp (void)
{ {
return read_register (s390_fp_regnum ()); return read_register (s390_fp_regnum ());
@ -1242,7 +1242,7 @@ s390_pop_frame_regular (struct frame_info *frame)
machine state that was in effect before the frame was created. machine state that was in effect before the frame was created.
Used in the contexts of the "return" command, and of Used in the contexts of the "return" command, and of
target function calls from the debugger. */ target function calls from the debugger. */
void static void
s390_pop_frame (void) s390_pop_frame (void)
{ {
/* This function checks for and handles generic dummy frames, and /* This function checks for and handles generic dummy frames, and
@ -1492,7 +1492,7 @@ alignment_of (struct type *type)
Our caller has taken care of any type promotions needed to satisfy Our caller has taken care of any type promotions needed to satisfy
prototypes or the old K&R argument-passing rules. */ prototypes or the old K&R argument-passing rules. */
CORE_ADDR static CORE_ADDR
s390_push_arguments (int nargs, struct value **args, CORE_ADDR sp, s390_push_arguments (int nargs, struct value **args, CORE_ADDR sp,
int struct_return, CORE_ADDR struct_addr) int struct_return, CORE_ADDR struct_addr)
{ {
@ -1676,7 +1676,7 @@ s390_use_struct_convention (int gcc_p, struct type *value_type)
/* Return the GDB type object for the "standard" data type /* Return the GDB type object for the "standard" data type
of data in register N. */ of data in register N. */
struct type * static struct type *
s390_register_virtual_type (int regno) s390_register_virtual_type (int regno)
{ {
if (S390_FP0_REGNUM <= regno && regno < S390_FP0_REGNUM + S390_NUM_FPRS) if (S390_FP0_REGNUM <= regno && regno < S390_FP0_REGNUM + S390_NUM_FPRS)
@ -1686,7 +1686,7 @@ s390_register_virtual_type (int regno)
} }
struct type * static struct type *
s390x_register_virtual_type (int regno) s390x_register_virtual_type (int regno)
{ {
return (regno == S390_FPC_REGNUM) || return (regno == S390_FPC_REGNUM) ||
@ -1696,7 +1696,7 @@ s390x_register_virtual_type (int regno)
void static void
s390_store_struct_return (CORE_ADDR addr, CORE_ADDR sp) s390_store_struct_return (CORE_ADDR addr, CORE_ADDR sp)
{ {
write_register (S390_GP0_REGNUM + 2, addr); write_register (S390_GP0_REGNUM + 2, addr);
@ -1704,7 +1704,7 @@ s390_store_struct_return (CORE_ADDR addr, CORE_ADDR sp)
const static unsigned char * static const unsigned char *
s390_breakpoint_from_pc (CORE_ADDR *pcptr, int *lenptr) s390_breakpoint_from_pc (CORE_ADDR *pcptr, int *lenptr)
{ {
static unsigned char breakpoint[] = { 0x0, 0x1 }; static unsigned char breakpoint[] = { 0x0, 0x1 };
@ -1715,7 +1715,7 @@ s390_breakpoint_from_pc (CORE_ADDR *pcptr, int *lenptr)
/* Advance PC across any function entry prologue instructions to reach some /* Advance PC across any function entry prologue instructions to reach some
"real" code. */ "real" code. */
CORE_ADDR static CORE_ADDR
s390_skip_prologue (CORE_ADDR pc) s390_skip_prologue (CORE_ADDR pc)
{ {
struct frame_extra_info fextra_info; struct frame_extra_info fextra_info;
@ -1728,7 +1728,7 @@ s390_skip_prologue (CORE_ADDR pc)
Can't go through the frames for this because on some machines Can't go through the frames for this because on some machines
the new frame is not set up until the new function executes the new frame is not set up until the new function executes
some instructions. */ some instructions. */
CORE_ADDR static CORE_ADDR
s390_saved_pc_after_call (struct frame_info *frame) s390_saved_pc_after_call (struct frame_info *frame)
{ {
return ADDR_BITS_REMOVE (read_register (S390_RETADDR_REGNUM)); return ADDR_BITS_REMOVE (read_register (S390_RETADDR_REGNUM));
@ -1766,7 +1766,7 @@ s390_address_class_type_flags_to_name (struct gdbarch *gdbarch, int type_flags)
return NULL; return NULL;
} }
int static int
s390_address_class_name_to_type_flags (struct gdbarch *gdbarch, const char *name, s390_address_class_name_to_type_flags (struct gdbarch *gdbarch, const char *name,
int *type_flags_ptr) int *type_flags_ptr)
{ {
@ -1779,7 +1779,7 @@ s390_address_class_name_to_type_flags (struct gdbarch *gdbarch, const char *name
return 0; return 0;
} }
struct gdbarch * static struct gdbarch *
s390_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) s390_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
{ {
static LONGEST s390_call_dummy_words[] = { 0 }; static LONGEST s390_call_dummy_words[] = { 0 };
@ -1905,6 +1905,8 @@ s390_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
extern initialize_file_ftype _initialize_s390_tdep; /* -Wmissing-prototypes */
void void
_initialize_s390_tdep (void) _initialize_s390_tdep (void)
{ {

View File

@ -19,8 +19,8 @@
Foundation, Inc., 59 Temple Place - Suite 330, Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
#if defined __GO32__ || defined _WIN32
#include "defs.h" #include "defs.h"
#if defined __GO32__ || defined _WIN32
#include "serial.h" #include "serial.h"
#include "gdb_string.h" #include "gdb_string.h"
@ -425,6 +425,8 @@ static struct serial_ops e7000pc_ops =
#endif /*_WIN32 or __GO32__*/ #endif /*_WIN32 or __GO32__*/
extern initialize_file_ftype _initialize_ser_e7000pc; /* -Wmissing-prototypes */
void void
_initialize_ser_e7000pc (void) _initialize_ser_e7000pc (void)
{ {

View File

@ -362,7 +362,7 @@ sh_breakpoint_from_pc (CORE_ADDR *pcptr, int *lenptr)
#define MSYMBOL_IS_SPECIAL(msym) \ #define MSYMBOL_IS_SPECIAL(msym) \
(((long) MSYMBOL_INFO (msym) & 0x80000000) != 0) (((long) MSYMBOL_INFO (msym) & 0x80000000) != 0)
void static void
sh64_elf_make_msymbol_special (asymbol *sym, struct minimal_symbol *msym) sh64_elf_make_msymbol_special (asymbol *sym, struct minimal_symbol *msym)
{ {
if (msym == NULL) if (msym == NULL)
@ -1239,7 +1239,7 @@ is_media_pseudo (int rn)
&& rn <= tdep->FV_LAST_REGNUM); && rn <= tdep->FV_LAST_REGNUM);
} }
int static int
sh64_get_gdb_regnum (int gcc_regnum, CORE_ADDR pc) sh64_get_gdb_regnum (int gcc_regnum, CORE_ADDR pc)
{ {
return translate_insn_rn (gcc_regnum, pc_is_isa32 (pc)); return translate_insn_rn (gcc_regnum, pc_is_isa32 (pc));
@ -1813,7 +1813,7 @@ sh64_init_extra_frame_info (int fromleaf, struct frame_info *fi)
} }
} }
void static void
sh64_get_saved_register (char *raw_buffer, int *optimized, CORE_ADDR *addrp, sh64_get_saved_register (char *raw_buffer, int *optimized, CORE_ADDR *addrp,
struct frame_info *frame, int regnum, struct frame_info *frame, int regnum,
enum lval_type *lval) enum lval_type *lval)
@ -3035,7 +3035,8 @@ sh64_show_regs (void)
sh64_show_compact_regs (); sh64_show_compact_regs ();
} }
void sh_show_regs_command (char *args, int from_tty) static void
sh_show_regs_command (char *args, int from_tty)
{ {
if (sh_show_regs) if (sh_show_regs)
(*sh_show_regs)(); (*sh_show_regs)();
@ -3409,7 +3410,7 @@ sh_sh4_register_convert_to_virtual (int regnum, struct type *type,
error ("sh_register_convert_to_virtual called with non DR register number"); error ("sh_register_convert_to_virtual called with non DR register number");
} }
void static void
sh_sh64_register_convert_to_virtual (int regnum, struct type *type, sh_sh64_register_convert_to_virtual (int regnum, struct type *type,
char *from, char *to) char *from, char *to)
{ {
@ -3451,7 +3452,7 @@ sh_sh4_register_convert_to_raw (struct type *type, int regnum,
error("sh_register_convert_to_raw called with non DR register number"); error("sh_register_convert_to_raw called with non DR register number");
} }
void static void
sh_sh64_register_convert_to_raw (struct type *type, int regnum, sh_sh64_register_convert_to_raw (struct type *type, int regnum,
const void *from, void *to) const void *from, void *to)
{ {
@ -3476,7 +3477,7 @@ sh_sh64_register_convert_to_raw (struct type *type, int regnum,
error("sh_register_convert_to_raw called with non DR register number"); error("sh_register_convert_to_raw called with non DR register number");
} }
void static void
sh_pseudo_register_read (struct gdbarch *gdbarch, struct regcache *regcache, sh_pseudo_register_read (struct gdbarch *gdbarch, struct regcache *regcache,
int reg_nr, void *buffer) int reg_nr, void *buffer)
{ {
@ -3679,7 +3680,7 @@ sh64_pseudo_register_read (struct gdbarch *gdbarch, struct regcache *regcache,
} }
} }
void static void
sh_pseudo_register_write (struct gdbarch *gdbarch, struct regcache *regcache, sh_pseudo_register_write (struct gdbarch *gdbarch, struct regcache *regcache,
int reg_nr, const void *buffer) int reg_nr, const void *buffer)
{ {
@ -3715,7 +3716,7 @@ sh_pseudo_register_write (struct gdbarch *gdbarch, struct regcache *regcache,
} }
} }
void static void
sh64_pseudo_register_write (struct gdbarch *gdbarch, struct regcache *regcache, sh64_pseudo_register_write (struct gdbarch *gdbarch, struct regcache *regcache,
int reg_nr, const void *buffer) int reg_nr, const void *buffer)
{ {
@ -4123,7 +4124,7 @@ sh_print_register (int regnum)
do_pseudo_register (regnum); do_pseudo_register (regnum);
} }
void static void
sh_do_registers_info (int regnum, int fpregs) sh_do_registers_info (int regnum, int fpregs)
{ {
if (regnum != -1) /* do one specified register */ if (regnum != -1) /* do one specified register */
@ -4175,7 +4176,7 @@ sh_do_registers_info (int regnum, int fpregs)
} }
} }
void static void
sh_compact_do_registers_info (int regnum, int fpregs) sh_compact_do_registers_info (int regnum, int fpregs)
{ {
struct gdbarch_tdep *tdep = gdbarch_tdep (current_gdbarch); struct gdbarch_tdep *tdep = gdbarch_tdep (current_gdbarch);
@ -4201,7 +4202,7 @@ sh_compact_do_registers_info (int regnum, int fpregs)
} }
} }
void static void
sh64_do_registers_info (int regnum, int fpregs) sh64_do_registers_info (int regnum, int fpregs)
{ {
if (pc_is_isa32 (get_frame_pc (deprecated_selected_frame))) if (pc_is_isa32 (get_frame_pc (deprecated_selected_frame)))
@ -4684,6 +4685,8 @@ sh_dump_tdep (struct gdbarch *current_gdbarch, struct ui_file *file)
/* FIXME: dump the rest of gdbarch_tdep. */ /* FIXME: dump the rest of gdbarch_tdep. */
} }
extern initialize_file_ftype _initialize_sh_tdep; /* -Wmissing-prototypes */
void void
_initialize_sh_tdep (void) _initialize_sh_tdep (void)
{ {

View File

@ -343,6 +343,8 @@ sh3_close (int quitting)
} }
} }
extern initialize_file_ftype _initialize_sh3_rom; /* -Wmissing-prototypes */
void void
_initialize_sh3_rom (void) _initialize_sh3_rom (void)
{ {

View File

@ -142,6 +142,8 @@ legacy_svr4_fetch_link_map_offsets (void)
#endif /* HAVE_LINK_H */ #endif /* HAVE_LINK_H */
extern initialize_file_ftype _initialize_svr4_lm; /* -Wmissing-prototypes */
void void
_initialize_svr4_lm (void) _initialize_svr4_lm (void)
{ {

View File

@ -1455,6 +1455,8 @@ init_fetch_link_map_offsets (struct gdbarch *gdbarch)
static struct target_so_ops svr4_so_ops; static struct target_so_ops svr4_so_ops;
extern initialize_file_ftype _initialize_svr4_solib; /* -Wmissing-prototypes */
void void
_initialize_svr4_solib (void) _initialize_svr4_solib (void)
{ {

View File

@ -382,7 +382,7 @@ symbol_add_stub (void *arg)
the section table. But we only use this for core files and the section table. But we only use this for core files and
processes we've just attached to, so that's okay. */ processes we've just attached to, so that's okay. */
void static void
update_solib_list (int from_tty, struct target_ops *target) update_solib_list (int from_tty, struct target_ops *target)
{ {
struct so_list *inferior = TARGET_SO_CURRENT_SOS (); struct so_list *inferior = TARGET_SO_CURRENT_SOS ();
@ -857,6 +857,8 @@ reload_shared_libraries (char *ignored, int from_tty)
solib_add (NULL, from_tty, NULL, auto_solib_add); solib_add (NULL, from_tty, NULL, auto_solib_add);
} }
extern initialize_file_ftype _initialize_solib; /* -Wmissing-prototypes */
void void
_initialize_solib (void) _initialize_solib (void)
{ {

View File

@ -2186,7 +2186,7 @@ sparc_do_registers_info (int regnum, int all)
#endif #endif
int static int
gdb_print_insn_sparc (bfd_vma memaddr, disassemble_info *info) gdb_print_insn_sparc (bfd_vma memaddr, disassemble_info *info)
{ {
/* It's necessary to override mach again because print_insn messes it up. */ /* It's necessary to override mach again because print_insn messes it up. */
@ -2448,7 +2448,7 @@ sparc_extract_struct_value_address (struct regcache *regcache)
/* FIXME: kettenis/2003/05/24: Still used for sparc64. */ /* FIXME: kettenis/2003/05/24: Still used for sparc64. */
void static void
sparc_store_return_value (struct type *type, char *valbuf) sparc_store_return_value (struct type *type, char *valbuf)
{ {
int regno; int regno;
@ -2597,6 +2597,8 @@ static struct gdbarch * sparc_gdbarch_init (struct gdbarch_info info,
struct gdbarch_list *arches); struct gdbarch_list *arches);
static void sparc_dump_tdep (struct gdbarch *, struct ui_file *); static void sparc_dump_tdep (struct gdbarch *, struct ui_file *);
extern initialize_file_ftype _initialize_sparc_tdep; /* -Wmissing-prototypes */
void void
_initialize_sparc_tdep (void) _initialize_sparc_tdep (void)
{ {
@ -2611,7 +2613,7 @@ _initialize_sparc_tdep (void)
/* Compensate for stack bias. Note that we currently don't handle /* Compensate for stack bias. Note that we currently don't handle
mixed 32/64 bit code. */ mixed 32/64 bit code. */
CORE_ADDR static CORE_ADDR
sparc64_read_sp (void) sparc64_read_sp (void)
{ {
CORE_ADDR sp = read_register (SP_REGNUM); CORE_ADDR sp = read_register (SP_REGNUM);
@ -2621,7 +2623,7 @@ sparc64_read_sp (void)
return sp; return sp;
} }
CORE_ADDR static CORE_ADDR
sparc64_read_fp (void) sparc64_read_fp (void)
{ {
CORE_ADDR fp = read_register (DEPRECATED_FP_REGNUM); CORE_ADDR fp = read_register (DEPRECATED_FP_REGNUM);
@ -2631,7 +2633,7 @@ sparc64_read_fp (void)
return fp; return fp;
} }
void static void
sparc64_write_sp (CORE_ADDR val) sparc64_write_sp (CORE_ADDR val)
{ {
CORE_ADDR oldsp = read_register (SP_REGNUM); CORE_ADDR oldsp = read_register (SP_REGNUM);
@ -2655,7 +2657,7 @@ sparc64_write_sp (CORE_ADDR val)
for both; this means that if the arguments alternate between for both; this means that if the arguments alternate between
int and float, we will waste every other register of both types. */ int and float, we will waste every other register of both types. */
CORE_ADDR static CORE_ADDR
sparc64_push_arguments (int nargs, struct value **args, CORE_ADDR sp, sparc64_push_arguments (int nargs, struct value **args, CORE_ADDR sp,
int struct_return, CORE_ADDR struct_retaddr) int struct_return, CORE_ADDR struct_retaddr)
{ {
@ -2772,7 +2774,7 @@ sparc64_push_arguments (int nargs, struct value **args, CORE_ADDR sp,
/* Values <= 32 bytes are returned in o0-o3 (floating-point values are /* Values <= 32 bytes are returned in o0-o3 (floating-point values are
returned in f0-f3). */ returned in f0-f3). */
void static void
sp64_extract_return_value (struct type *type, char *regbuf, char *valbuf, sp64_extract_return_value (struct type *type, char *regbuf, char *valbuf,
int bitoffset) int bitoffset)
{ {
@ -2829,7 +2831,7 @@ sp64_extract_return_value (struct type *type, char *regbuf, char *valbuf,
} }
} }
extern void static void
sparc64_extract_return_value (struct type *type, char *regbuf, char *valbuf) sparc64_extract_return_value (struct type *type, char *regbuf, char *valbuf)
{ {
sp64_extract_return_value (type, regbuf, valbuf, 0); sp64_extract_return_value (type, regbuf, valbuf, 0);
@ -2855,7 +2857,7 @@ sparc32_stack_align (CORE_ADDR addr)
return ((addr + 7) & -8); return ((addr + 7) & -8);
} }
extern CORE_ADDR static CORE_ADDR
sparc64_stack_align (CORE_ADDR addr) sparc64_stack_align (CORE_ADDR addr)
{ {
return ((addr + 15) & -16); return ((addr + 15) & -16);
@ -2993,7 +2995,7 @@ sparc64_register_name (int regno)
// OBSOLETE } // OBSOLETE }
#endif #endif
CORE_ADDR static CORE_ADDR
sparc_push_return_address (CORE_ADDR pc_unused, CORE_ADDR sp) sparc_push_return_address (CORE_ADDR pc_unused, CORE_ADDR sp)
{ {
if (CALL_DUMMY_LOCATION == AT_ENTRY_POINT) if (CALL_DUMMY_LOCATION == AT_ENTRY_POINT)
@ -3186,7 +3188,7 @@ sparc_call_dummy_address (void)
/* Supply the Y register number to those that need it. */ /* Supply the Y register number to those that need it. */
int static int
sparc_y_regnum (void) sparc_y_regnum (void)
{ {
return gdbarch_tdep (current_gdbarch)->y_regnum; return gdbarch_tdep (current_gdbarch)->y_regnum;
@ -3201,7 +3203,7 @@ sparc_reg_struct_has_addr (int gcc_p, struct type *type)
return (gcc_p != 1); return (gcc_p != 1);
} }
int static int
sparc_intreg_size (void) sparc_intreg_size (void)
{ {
return SPARC_INTREG_SIZE; return SPARC_INTREG_SIZE;
@ -3218,8 +3220,9 @@ sparc_return_value_on_stack (struct type *type)
} }
/* Get the ith function argument for the current function. */ /* Get the ith function argument for the current function. */
CORE_ADDR static CORE_ADDR
sparc_fetch_pointer_argument (struct frame_info *frame, int argi, struct type *type) sparc_fetch_pointer_argument (struct frame_info *frame, int argi,
struct type *type)
{ {
CORE_ADDR addr; CORE_ADDR addr;
frame_read_register (frame, O0_REGNUM + argi, &addr); frame_read_register (frame, O0_REGNUM + argi, &addr);

View File

@ -797,7 +797,7 @@ v850_scan_prologue (CORE_ADDR pc, struct prologue_info *pi)
when trying to get the value of caller-saves registers for an inner when trying to get the value of caller-saves registers for an inner
frame. */ frame. */
CORE_ADDR static CORE_ADDR
v850_find_callers_reg (struct frame_info *fi, int regnum) v850_find_callers_reg (struct frame_info *fi, int regnum)
{ {
for (; fi; fi = get_next_frame (fi)) for (; fi; fi = get_next_frame (fi))
@ -819,7 +819,7 @@ v850_find_callers_reg (struct frame_info *fi, int regnum)
just return the stack pointer that was in use at the time the just return the stack pointer that was in use at the time the
function call was made. */ function call was made. */
CORE_ADDR static CORE_ADDR
v850_frame_chain (struct frame_info *fi) v850_frame_chain (struct frame_info *fi)
{ {
struct prologue_info pi; struct prologue_info pi;
@ -850,7 +850,7 @@ v850_frame_chain (struct frame_info *fi)
/* Function: skip_prologue /* Function: skip_prologue
Return the address of the first code past the prologue of the function. */ Return the address of the first code past the prologue of the function. */
CORE_ADDR static CORE_ADDR
v850_skip_prologue (CORE_ADDR pc) v850_skip_prologue (CORE_ADDR pc)
{ {
CORE_ADDR func_addr, func_end; CORE_ADDR func_addr, func_end;
@ -880,7 +880,7 @@ v850_skip_prologue (CORE_ADDR pc)
This routine gets called when either the user uses the `return' This routine gets called when either the user uses the `return'
command, or the call dummy breakpoint gets hit. */ command, or the call dummy breakpoint gets hit. */
void static void
v850_pop_frame (void) v850_pop_frame (void)
{ {
struct frame_info *frame = get_current_frame (); struct frame_info *frame = get_current_frame ();
@ -917,7 +917,7 @@ v850_pop_frame (void)
Stack space for the args has NOT been allocated: that job is up to us. Stack space for the args has NOT been allocated: that job is up to us.
*/ */
CORE_ADDR static CORE_ADDR
v850_push_arguments (int nargs, struct value **args, CORE_ADDR sp, v850_push_arguments (int nargs, struct value **args, CORE_ADDR sp,
int struct_return, CORE_ADDR struct_addr) int struct_return, CORE_ADDR struct_addr)
{ {
@ -997,7 +997,7 @@ v850_push_arguments (int nargs, struct value **args, CORE_ADDR sp,
Set up the return address for the inferior function call. Set up the return address for the inferior function call.
Needed for targets where we don't actually execute a JSR/BSR instruction */ Needed for targets where we don't actually execute a JSR/BSR instruction */
CORE_ADDR static CORE_ADDR
v850_push_return_address (CORE_ADDR pc, CORE_ADDR sp) v850_push_return_address (CORE_ADDR pc, CORE_ADDR sp)
{ {
write_register (E_RP_REGNUM, CALL_DUMMY_ADDRESS ()); write_register (E_RP_REGNUM, CALL_DUMMY_ADDRESS ());
@ -1011,7 +1011,7 @@ v850_push_return_address (CORE_ADDR pc, CORE_ADDR sp)
instead of RP, because that's where "caller" of the dummy-frame instead of RP, because that's where "caller" of the dummy-frame
will be found. */ will be found. */
CORE_ADDR static CORE_ADDR
v850_frame_saved_pc (struct frame_info *fi) v850_frame_saved_pc (struct frame_info *fi)
{ {
if (DEPRECATED_PC_IN_CALL_DUMMY (get_frame_pc (fi), get_frame_base (fi), if (DEPRECATED_PC_IN_CALL_DUMMY (get_frame_pc (fi), get_frame_base (fi),
@ -1030,7 +1030,7 @@ v850_frame_saved_pc (struct frame_info *fi)
trap trap
*/ */
void static void
v850_fix_call_dummy (char *dummy, CORE_ADDR sp, CORE_ADDR fun, int nargs, v850_fix_call_dummy (char *dummy, CORE_ADDR sp, CORE_ADDR fun, int nargs,
struct value **args, struct type *type, int gcc_p) struct value **args, struct type *type, int gcc_p)
{ {
@ -1291,6 +1291,8 @@ v850_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
return gdbarch; return gdbarch;
} }
extern initialize_file_ftype _initialize_v850_tdep; /* -Wmissing-prototypes */
void void
_initialize_v850_tdep (void) _initialize_v850_tdep (void)
{ {

View File

@ -428,6 +428,8 @@ vax_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
return (gdbarch); return (gdbarch);
} }
extern initialize_file_ftype _initialize_vax_tdep; /* -Wmissing-prototypes */
void void
_initialize_vax_tdep (void) _initialize_vax_tdep (void)
{ {

View File

@ -307,7 +307,7 @@ xstormy16_push_arguments (int nargs, struct value **args, CORE_ADDR sp,
(which may or may not be the same as before). (which may or may not be the same as before).
*/ */
CORE_ADDR static CORE_ADDR
xstormy16_push_return_address (CORE_ADDR pc, CORE_ADDR sp) xstormy16_push_return_address (CORE_ADDR pc, CORE_ADDR sp)
{ {
unsigned char buf[xstormy16_pc_size]; unsigned char buf[xstormy16_pc_size];
@ -995,7 +995,7 @@ xstormy16_stack_align (CORE_ADDR addr)
return addr; return addr;
} }
void static void
xstormy16_save_dummy_frame_tos (CORE_ADDR sp) xstormy16_save_dummy_frame_tos (CORE_ADDR sp)
{ {
generic_save_dummy_frame_tos (sp - xstormy16_pc_size); generic_save_dummy_frame_tos (sp - xstormy16_pc_size);
@ -1121,6 +1121,8 @@ xstormy16_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
Initializer function for the Sanyo Xstormy16a module. Initializer function for the Sanyo Xstormy16a module.
Called by gdb at start-up. */ Called by gdb at start-up. */
extern initialize_file_ftype _initialize_xstormy16_tdep; /* -Wmissing-prototypes */
void void
_initialize_xstormy16_tdep (void) _initialize_xstormy16_tdep (void)
{ {