mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-21 01:12:32 +08:00
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:
parent
d25d759de9
commit
a78f21af4f
@ -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>
|
||||
|
||||
* remote-fileio.c: Make ari happy.
|
||||
|
@ -164,6 +164,8 @@ abug_open (char *args, int from_tty)
|
||||
monitor_open (args, &abug_cmds, from_tty);
|
||||
}
|
||||
|
||||
extern initialize_file_ftype _initialize_abug_rom; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_abug_rom (void)
|
||||
{
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
extern initialize_file_ftype _initialize_alpha_tdep; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_alpha_tdep (void)
|
||||
{
|
||||
|
@ -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
|
||||
_initialize_gdbarch_utils (void)
|
||||
|
@ -3054,6 +3054,8 @@ arm_init_abi_apcs (struct gdbarch_info info,
|
||||
/* Place-holder. */
|
||||
}
|
||||
|
||||
extern initialize_file_ftype _initialize_arm_tdep; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_arm_tdep (void)
|
||||
{
|
||||
|
@ -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
|
||||
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)
|
||||
{
|
||||
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
|
||||
_initialize_avr_tdep (void)
|
||||
{
|
||||
|
@ -162,6 +162,8 @@ cpu32bug_open (char *args, int from_tty)
|
||||
monitor_open (args, &cpu32bug_cmds, from_tty);
|
||||
}
|
||||
|
||||
extern initialize_file_ftype _initialize_cpu32bug_rom; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_cpu32bug_rom (void)
|
||||
{
|
||||
|
173
gdb/cris-tdep.c
173
gdb/cris-tdep.c
@ -464,7 +464,7 @@ static CORE_ADDR bfd_lookup_symbol (bfd *, const char *);
|
||||
the entire prologue is examined (0) or just enough instructions to
|
||||
determine that it is a prologue (1). */
|
||||
|
||||
CORE_ADDR
|
||||
static CORE_ADDR
|
||||
cris_examine (CORE_ADDR ip, CORE_ADDR limit, struct frame_info *fi,
|
||||
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
|
||||
to reach some "real" code. */
|
||||
|
||||
CORE_ADDR
|
||||
static CORE_ADDR
|
||||
cris_skip_prologue (CORE_ADDR pc)
|
||||
{
|
||||
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
|
||||
frameless, unequal otherwise. */
|
||||
|
||||
CORE_ADDR
|
||||
static CORE_ADDR
|
||||
cris_skip_prologue_frameless_p (CORE_ADDR pc)
|
||||
{
|
||||
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
|
||||
of the first instruction after the function prologue. */
|
||||
|
||||
CORE_ADDR
|
||||
static CORE_ADDR
|
||||
cris_skip_prologue_main (CORE_ADDR pc, int frameless_p)
|
||||
{
|
||||
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
|
||||
the breakpoint should be inserted. */
|
||||
|
||||
const unsigned char *
|
||||
static const unsigned char *
|
||||
cris_breakpoint_from_pc (CORE_ADDR *pcptr, int *lenptr)
|
||||
{
|
||||
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,
|
||||
0 otherwise. */
|
||||
|
||||
int
|
||||
static int
|
||||
cris_spec_reg_applicable (struct cris_spec_reg spec_reg)
|
||||
{
|
||||
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
|
||||
register, -1 for an invalid register. */
|
||||
|
||||
int
|
||||
static int
|
||||
cris_register_size (int regno)
|
||||
{
|
||||
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
|
||||
for unimplemented (size 0) and non-existant registers. */
|
||||
|
||||
int
|
||||
static int
|
||||
cris_cannot_fetch_register (int regno)
|
||||
{
|
||||
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
|
||||
reasons. */
|
||||
|
||||
int
|
||||
static int
|
||||
cris_cannot_store_register (int regno)
|
||||
{
|
||||
/* 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
|
||||
register. */
|
||||
|
||||
int
|
||||
static int
|
||||
cris_register_offset (int regno)
|
||||
{
|
||||
int i;
|
||||
@ -929,7 +929,7 @@ cris_register_offset (int regno)
|
||||
/* Return the GDB type (defined in gdbtypes.c) for the "standard" data type
|
||||
of data in register regno. */
|
||||
|
||||
struct type *
|
||||
static struct type *
|
||||
cris_register_virtual_type (int regno)
|
||||
{
|
||||
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. */
|
||||
|
||||
void
|
||||
static void
|
||||
cris_abi_original_store_return_value (struct type *type, char *valbuf)
|
||||
{
|
||||
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. */
|
||||
|
||||
void
|
||||
static void
|
||||
cris_abi_v2_store_return_value (struct type *type, char *valbuf)
|
||||
{
|
||||
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
|
||||
unimplemented register. */
|
||||
|
||||
const char *
|
||||
static const char *
|
||||
cris_register_name (int regno)
|
||||
{
|
||||
static char *cris_genreg_names[] =
|
||||
@ -1039,7 +1039,7 @@ cris_register_name (int regno)
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
cris_register_bytes_ok (long 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. */
|
||||
|
||||
void
|
||||
static void
|
||||
cris_abi_original_extract_return_value (struct type *type, char *regbuf,
|
||||
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. */
|
||||
|
||||
void
|
||||
static void
|
||||
cris_abi_v2_extract_return_value (struct type *type, char *regbuf,
|
||||
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
|
||||
later use. */
|
||||
|
||||
void
|
||||
static void
|
||||
cris_store_struct_return (CORE_ADDR addr, CORE_ADDR sp)
|
||||
{
|
||||
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
|
||||
way. */
|
||||
|
||||
CORE_ADDR
|
||||
static CORE_ADDR
|
||||
cris_extract_struct_value_address (char *regbuf)
|
||||
{
|
||||
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
|
||||
this is always true. */
|
||||
|
||||
int
|
||||
static int
|
||||
cris_use_struct_convention (int gcc_p, struct type *type)
|
||||
{
|
||||
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
|
||||
passed by value. */
|
||||
|
||||
int
|
||||
static int
|
||||
cris_abi_original_reg_struct_has_addr (int gcc_p, struct type *type)
|
||||
{
|
||||
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
|
||||
by value. */
|
||||
|
||||
int
|
||||
static int
|
||||
cris_abi_v2_reg_struct_has_addr (int gcc_p, struct type *type)
|
||||
{
|
||||
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
|
||||
stack frame associated with it. Otherwise return 0. */
|
||||
|
||||
int
|
||||
static int
|
||||
cris_frameless_function_invocation (struct frame_info *fi)
|
||||
{
|
||||
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
|
||||
DEPRECATED_FRAME_INIT_SAVED_REGS using frame_saved_regs_zalloc. */
|
||||
|
||||
void
|
||||
static void
|
||||
cris_frame_init_saved_regs (struct frame_info *fi)
|
||||
{
|
||||
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
|
||||
cris_frameless_function_invocation. */
|
||||
|
||||
void
|
||||
static void
|
||||
cris_init_extra_frame_info (int fromleaf, struct frame_info *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
|
||||
words, determine the address of the calling function's frame. */
|
||||
|
||||
CORE_ADDR
|
||||
static CORE_ADDR
|
||||
cris_frame_chain (struct frame_info *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. */
|
||||
|
||||
CORE_ADDR
|
||||
static CORE_ADDR
|
||||
cris_frame_saved_pc (struct frame_info *fi)
|
||||
{
|
||||
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. */
|
||||
|
||||
CORE_ADDR
|
||||
static CORE_ADDR
|
||||
cris_abi_original_push_arguments (int nargs, struct value **args,
|
||||
CORE_ADDR sp, int struct_return,
|
||||
CORE_ADDR struct_addr)
|
||||
@ -1367,7 +1367,7 @@ cris_abi_original_push_arguments (int nargs, struct value **args,
|
||||
return sp;
|
||||
}
|
||||
|
||||
CORE_ADDR
|
||||
static CORE_ADDR
|
||||
cris_abi_v2_push_arguments (int nargs, struct value **args, CORE_ADDR sp,
|
||||
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
|
||||
register the PC will change when continue is sent. */
|
||||
|
||||
CORE_ADDR
|
||||
static CORE_ADDR
|
||||
cris_push_return_address (CORE_ADDR pc, CORE_ADDR sp)
|
||||
{
|
||||
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
|
||||
all saved registers. */
|
||||
|
||||
void
|
||||
static void
|
||||
cris_pop_frame (void)
|
||||
{
|
||||
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.
|
||||
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)
|
||||
{
|
||||
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. */
|
||||
|
||||
void
|
||||
static void
|
||||
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
|
||||
@ -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
|
||||
word addresses. */
|
||||
|
||||
void
|
||||
static void
|
||||
process_autoincrement (int size, unsigned short inst, inst_env_type *inst_env)
|
||||
{
|
||||
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. */
|
||||
|
||||
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
|
||||
mode. */
|
||||
|
||||
void
|
||||
static void
|
||||
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. */
|
||||
|
||||
void
|
||||
static void
|
||||
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
|
||||
@ -1947,7 +1948,7 @@ biap_prefix (unsigned short inst, inst_env_type *inst_env)
|
||||
|
||||
/* Calculates the prefix value for the double indirect addressing mode. */
|
||||
|
||||
void
|
||||
static void
|
||||
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. */
|
||||
|
||||
void
|
||||
static void
|
||||
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. */
|
||||
|
||||
void
|
||||
static void
|
||||
sixteen_bit_offset_branch_op (unsigned short inst, inst_env_type *inst_env)
|
||||
{
|
||||
short offset;
|
||||
@ -2048,7 +2049,7 @@ sixteen_bit_offset_branch_op (unsigned short inst, inst_env_type *inst_env)
|
||||
|
||||
/* Handles the ABS instruction. */
|
||||
|
||||
void
|
||||
static void
|
||||
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. */
|
||||
|
||||
void
|
||||
static void
|
||||
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
|
||||
@ -2109,7 +2110,7 @@ addi_op (unsigned short inst, inst_env_type *inst_env)
|
||||
|
||||
/* Handles the ASR instruction. */
|
||||
|
||||
void
|
||||
static void
|
||||
asr_op (unsigned short inst, inst_env_type *inst_env)
|
||||
{
|
||||
int shift_steps;
|
||||
@ -2186,7 +2187,7 @@ asr_op (unsigned short inst, inst_env_type *inst_env)
|
||||
|
||||
/* Handles the ASRQ instruction. */
|
||||
|
||||
void
|
||||
static void
|
||||
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. */
|
||||
|
||||
void
|
||||
static void
|
||||
ax_ei_setf_op (unsigned short inst, inst_env_type *inst_env)
|
||||
{
|
||||
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
|
||||
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 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. */
|
||||
|
||||
void
|
||||
static void
|
||||
two_operand_bound_op (unsigned short inst, inst_env_type *inst_env)
|
||||
{
|
||||
/* 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. */
|
||||
|
||||
void
|
||||
static void
|
||||
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
|
||||
@ -2323,7 +2324,7 @@ three_operand_bound_op (unsigned short inst, inst_env_type *inst_env)
|
||||
|
||||
/* Clears the status flags in inst_env. */
|
||||
|
||||
void
|
||||
static void
|
||||
btst_nop_op (unsigned short inst, inst_env_type *inst_env)
|
||||
{
|
||||
/* 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. */
|
||||
|
||||
void
|
||||
static void
|
||||
clearf_di_op (unsigned short inst, inst_env_type *inst_env)
|
||||
{
|
||||
/* 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. */
|
||||
|
||||
void
|
||||
static void
|
||||
reg_mode_clear_op (unsigned short inst, inst_env_type *inst_env)
|
||||
{
|
||||
/* 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. */
|
||||
|
||||
void
|
||||
static void
|
||||
reg_mode_test_op (unsigned short inst, inst_env_type *inst_env)
|
||||
{
|
||||
/* 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
|
||||
in register mode. */
|
||||
|
||||
void
|
||||
static void
|
||||
none_reg_mode_clear_test_op (unsigned short inst, inst_env_type *inst_env)
|
||||
{
|
||||
/* 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
|
||||
a prefix. */
|
||||
|
||||
void
|
||||
static void
|
||||
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
|
||||
@ -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. */
|
||||
|
||||
void
|
||||
static void
|
||||
break_op (unsigned short inst, inst_env_type *inst_env)
|
||||
{
|
||||
/* 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
|
||||
doesn't have a prefix. */
|
||||
|
||||
void
|
||||
static void
|
||||
scc_op (unsigned short inst, inst_env_type *inst_env)
|
||||
{
|
||||
/* 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. */
|
||||
|
||||
void
|
||||
static void
|
||||
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
|
||||
@ -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. */
|
||||
|
||||
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;
|
||||
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. */
|
||||
|
||||
void
|
||||
static void
|
||||
move_to_preg_op (unsigned short inst, inst_env_type *inst_env)
|
||||
{
|
||||
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
|
||||
except register. */
|
||||
|
||||
void
|
||||
static void
|
||||
none_reg_mode_move_from_preg_op (unsigned short inst, inst_env_type *inst_env)
|
||||
{
|
||||
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
|
||||
is register. */
|
||||
|
||||
void
|
||||
static void
|
||||
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. */
|
||||
@ -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. */
|
||||
|
||||
void
|
||||
static void
|
||||
move_mem_to_reg_movem_op (unsigned short inst, inst_env_type *inst_env)
|
||||
{
|
||||
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. */
|
||||
|
||||
void
|
||||
static void
|
||||
move_reg_to_mem_movem_op (unsigned short inst, inst_env_type *inst_env)
|
||||
{
|
||||
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.
|
||||
POP is a assembler macro for MOVE.D [SP+], Rd. */
|
||||
|
||||
void
|
||||
static void
|
||||
reg_pop_op (unsigned short inst, inst_env_type *inst_env)
|
||||
{
|
||||
/* 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. */
|
||||
|
||||
void
|
||||
static void
|
||||
move_reg_to_mem_index_inc_op (unsigned short inst, inst_env_type *inst_env)
|
||||
{
|
||||
/* 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
|
||||
inst_env->invalid to true. */
|
||||
|
||||
void
|
||||
static void
|
||||
not_implemented_op (unsigned short inst, inst_env_type *inst_env)
|
||||
{
|
||||
inst_env->invalid = 1;
|
||||
@ -2868,7 +2870,7 @@ not_implemented_op (unsigned short inst, inst_env_type *inst_env)
|
||||
|
||||
/* Handles the XOR instruction. */
|
||||
|
||||
void
|
||||
static void
|
||||
xor_op (unsigned short inst, inst_env_type *inst_env)
|
||||
{
|
||||
/* XOR can't have a prefix. */
|
||||
@ -2897,7 +2899,7 @@ xor_op (unsigned short inst, inst_env_type *inst_env)
|
||||
|
||||
/* Handles the MULS instruction. */
|
||||
|
||||
void
|
||||
static void
|
||||
muls_op (unsigned short inst, inst_env_type *inst_env)
|
||||
{
|
||||
/* 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. */
|
||||
|
||||
void
|
||||
static void
|
||||
mulu_op (unsigned short inst, inst_env_type *inst_env)
|
||||
{
|
||||
/* 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.
|
||||
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,
|
||||
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 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)
|
||||
{
|
||||
/* 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
|
||||
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,
|
||||
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
|
||||
extend instruction, the size field is changed in instruction. */
|
||||
|
||||
unsigned long
|
||||
static unsigned long
|
||||
get_data_from_address (unsigned short *inst, CORE_ADDR address)
|
||||
{
|
||||
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
|
||||
instructions. The MOVE instruction is the move from source to register. */
|
||||
|
||||
void
|
||||
static void
|
||||
handle_prefix_assign_mode_for_aritm_op (unsigned short inst,
|
||||
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
|
||||
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,
|
||||
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
|
||||
instructions. The MOVE instruction is the move from source to register. */
|
||||
|
||||
void
|
||||
static void
|
||||
handle_prefix_index_mode_for_aritm_op (unsigned short inst,
|
||||
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
|
||||
source to register. */
|
||||
|
||||
void
|
||||
static void
|
||||
handle_inc_and_index_mode_for_aritm_op (unsigned short inst,
|
||||
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
|
||||
the ADD, SUB CMP, AND and OR instruction. */
|
||||
|
||||
void
|
||||
static void
|
||||
none_reg_mode_add_sub_cmp_and_or_move_op (unsigned short inst,
|
||||
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. */
|
||||
|
||||
void
|
||||
static void
|
||||
quick_mode_add_sub_op (unsigned short inst, inst_env_type *inst_env)
|
||||
{
|
||||
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. */
|
||||
|
||||
void
|
||||
static void
|
||||
quick_mode_and_cmp_move_or_op (unsigned short inst, inst_env_type *inst_env)
|
||||
{
|
||||
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. */
|
||||
|
||||
static void cris_gdb_func (enum cris_op_type op_type, unsigned short inst,
|
||||
inst_env_type *inst_env)
|
||||
static void
|
||||
cris_gdb_func (enum cris_op_type op_type, unsigned short inst,
|
||||
inst_env_type *inst_env)
|
||||
{
|
||||
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. */
|
||||
|
||||
void
|
||||
static void
|
||||
supply_gregset (elf_gregset_t *gregsetp)
|
||||
{
|
||||
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. */
|
||||
|
||||
struct link_map_offsets *
|
||||
static struct link_map_offsets *
|
||||
cris_linux_svr4_fetch_link_map_offsets (void)
|
||||
{
|
||||
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
|
||||
_initialize_cris_tdep (void)
|
||||
{
|
||||
|
@ -160,6 +160,8 @@ dbug_open (char *args, int from_tty)
|
||||
monitor_open (args, &dbug_cmds, from_tty);
|
||||
}
|
||||
|
||||
extern initialize_file_ftype _initialize_dbug_rom; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_dbug_rom (void)
|
||||
{
|
||||
|
@ -1232,7 +1232,7 @@ read_dbx_dynamic_symtab (struct objfile *objfile)
|
||||
}
|
||||
|
||||
#ifdef SOFUN_ADDRESS_MAYBE_MISSING
|
||||
CORE_ADDR
|
||||
static CORE_ADDR
|
||||
find_stab_function_addr (char *namestring, char *filename,
|
||||
struct objfile *objfile)
|
||||
{
|
||||
|
@ -142,6 +142,8 @@ dink32_open (char *args, int from_tty)
|
||||
monitor_open (args, &dink32_cmds, from_tty);
|
||||
}
|
||||
|
||||
extern initialize_file_ftype _initialize_dink32_rom; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_dink32_rom (void)
|
||||
{
|
||||
|
@ -136,7 +136,7 @@ frame_base_find_by_pc (struct gdbarch *gdbarch, CORE_ADDR pc)
|
||||
return table->default_base;
|
||||
}
|
||||
|
||||
extern initialize_file_ftype _initialize_frame_base; /* -Wmissing-protypes */
|
||||
extern initialize_file_ftype _initialize_frame_base; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_frame_base (void)
|
||||
|
@ -1199,6 +1199,8 @@ h8300_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
|
||||
return gdbarch;
|
||||
}
|
||||
|
||||
extern initialize_file_ftype _initialize_h8300_tdep; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_h8300_tdep (void)
|
||||
{
|
||||
|
@ -253,7 +253,7 @@ ia64_register_virtual_size (int reg)
|
||||
|
||||
/* Return true iff register N's virtual format is different from
|
||||
its raw format. */
|
||||
int
|
||||
static int
|
||||
ia64_register_convertible (int nr)
|
||||
{
|
||||
return (IA64_FR0_REGNUM <= nr && nr <= IA64_FR127_REGNUM);
|
||||
@ -265,7 +265,7 @@ const struct floatformat floatformat_ia64_ext =
|
||||
floatformat_intbit_yes
|
||||
};
|
||||
|
||||
void
|
||||
static void
|
||||
ia64_register_convert_to_virtual (int regnum, struct type *type,
|
||||
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");
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
ia64_register_convert_to_raw (struct type *type, int regnum,
|
||||
char *from, char *to)
|
||||
{
|
||||
@ -635,7 +635,7 @@ ia64_read_fp (void)
|
||||
return read_register (SP_REGNUM);
|
||||
}
|
||||
|
||||
CORE_ADDR
|
||||
static CORE_ADDR
|
||||
ia64_read_pc (ptid_t 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);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
ia64_write_pc (CORE_ADDR new_pc, ptid_t ptid)
|
||||
{
|
||||
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
|
||||
of the beginning. */
|
||||
|
||||
CORE_ADDR
|
||||
static CORE_ADDR
|
||||
ia64_frame_chain (struct frame_info *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)
|
||||
{
|
||||
if ((get_frame_type (frame) == SIGTRAMP_FRAME))
|
||||
@ -1234,7 +1234,7 @@ ia64_skip_prologue (CORE_ADDR pc)
|
||||
return examine_prologue (pc, pc+1024, 0);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
ia64_frame_init_saved_regs (struct frame_info *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,
|
||||
int *optimized,
|
||||
CORE_ADDR *addrp,
|
||||
@ -1520,7 +1520,7 @@ ia64_extract_struct_value_address (char *regbuf)
|
||||
return struct_return_address;
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
ia64_store_struct_return (CORE_ADDR addr, CORE_ADDR sp)
|
||||
{
|
||||
/* FIXME: See above. */
|
||||
@ -1541,7 +1541,7 @@ ia64_saved_pc_after_call (struct frame_info *frame)
|
||||
return read_register (IA64_BR0_REGNUM);
|
||||
}
|
||||
|
||||
CORE_ADDR
|
||||
static CORE_ADDR
|
||||
ia64_frame_args_address (struct frame_info *frame)
|
||||
{
|
||||
/* 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);
|
||||
}
|
||||
|
||||
CORE_ADDR
|
||||
static CORE_ADDR
|
||||
ia64_frame_locals_address (struct frame_info *frame)
|
||||
{
|
||||
/* 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);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
ia64_init_extra_frame_info (int fromleaf, struct frame_info *frame)
|
||||
{
|
||||
CORE_ADDR bsp, cfm;
|
||||
@ -1856,7 +1856,7 @@ find_func_descr (CORE_ADDR faddr, CORE_ADDR *fdaptr)
|
||||
return fdesc;
|
||||
}
|
||||
|
||||
CORE_ADDR
|
||||
static CORE_ADDR
|
||||
ia64_push_arguments (int nargs, struct value **args, CORE_ADDR sp,
|
||||
int struct_return, CORE_ADDR struct_addr)
|
||||
{
|
||||
@ -2021,7 +2021,7 @@ ia64_push_arguments (int nargs, struct value **args, CORE_ADDR sp,
|
||||
return sp;
|
||||
}
|
||||
|
||||
CORE_ADDR
|
||||
static CORE_ADDR
|
||||
ia64_push_return_address (CORE_ADDR pc, CORE_ADDR sp)
|
||||
{
|
||||
CORE_ADDR global_pointer = FIND_GLOBAL_POINTER (pc);
|
||||
@ -2033,7 +2033,7 @@ ia64_push_return_address (CORE_ADDR pc, CORE_ADDR sp)
|
||||
return sp;
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
ia64_store_return_value (struct type *type, char *valbuf)
|
||||
{
|
||||
if (TYPE_CODE (type) == TYPE_CODE_FLT)
|
||||
@ -2047,7 +2047,7 @@ ia64_store_return_value (struct type *type, char *valbuf)
|
||||
valbuf, TYPE_LENGTH (type));
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
ia64_pop_frame (void)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
extern initialize_file_ftype _initialize_ia64_tdep; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_ia64_tdep (void)
|
||||
{
|
||||
|
@ -1051,7 +1051,7 @@ m68hc11_push_arguments (int nargs,
|
||||
|
||||
/* Return a location where we can set a breakpoint that will be hit
|
||||
when an inferior function call returns. */
|
||||
CORE_ADDR
|
||||
static CORE_ADDR
|
||||
m68hc11_call_dummy_address (void)
|
||||
{
|
||||
return entry_point_address ();
|
||||
@ -1419,6 +1419,8 @@ m68hc11_gdbarch_init (struct gdbarch_info info,
|
||||
return gdbarch;
|
||||
}
|
||||
|
||||
extern initialize_file_ftype _initialize_m68hc11_tdep; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_m68hc11_tdep (void)
|
||||
{
|
||||
|
@ -996,6 +996,8 @@ m68k_dump_tdep (struct gdbarch *current_gdbarch, struct ui_file *file)
|
||||
return;
|
||||
}
|
||||
|
||||
extern initialize_file_ftype _initialize_m68k_tdep; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_m68k_tdep (void)
|
||||
{
|
||||
|
@ -222,7 +222,7 @@ macro_list_command (char *exp, int from_tty)
|
||||
|
||||
/* Initializing the `macrocmd' module. */
|
||||
|
||||
extern initialize_file_ftype _initialize_macrocmd;
|
||||
extern initialize_file_ftype _initialize_macrocmd; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_macrocmd (void)
|
||||
|
@ -30,51 +30,10 @@
|
||||
#include "gdb_string.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 struct frame_info *analyze_dummy_frame (CORE_ADDR pc, CORE_ADDR frame);
|
||||
|
||||
static CORE_ADDR mcore_analyze_prologue (struct frame_info *fi, CORE_ADDR pc,
|
||||
int skip_prologue);
|
||||
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
|
||||
int mcore_debug = 0;
|
||||
#endif
|
||||
@ -739,7 +698,7 @@ mcore_frame_locals_address (struct frame_info * fi)
|
||||
|
||||
/* Return the frame pointer in use at address PC. */
|
||||
|
||||
void
|
||||
static void
|
||||
mcore_virtual_frame_pointer (CORE_ADDR pc, int *reg, LONGEST *offset)
|
||||
{
|
||||
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"
|
||||
command, or the call dummy breakpoint gets hit. */
|
||||
|
||||
void
|
||||
static void
|
||||
mcore_pop_frame (void)
|
||||
{
|
||||
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
|
||||
_initialize_mcore_tdep (void)
|
||||
{
|
||||
|
@ -6401,6 +6401,8 @@ mips_dump_tdep (struct gdbarch *current_gdbarch, struct ui_file *file)
|
||||
_PROC_MAGIC_);
|
||||
}
|
||||
|
||||
extern initialize_file_ftype _initialize_mips_tdep; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_mips_tdep (void)
|
||||
{
|
||||
|
@ -1054,12 +1054,11 @@ monitor_wait_cleanup (void *old_timeout)
|
||||
|
||||
|
||||
|
||||
void
|
||||
static void
|
||||
monitor_wait_filter (char *buf,
|
||||
int bufmax,
|
||||
int *ext_resp_len,
|
||||
struct target_waitstatus *status
|
||||
)
|
||||
struct target_waitstatus *status)
|
||||
{
|
||||
int resp_len;
|
||||
do
|
||||
@ -2335,6 +2334,8 @@ init_monitor_ops (struct target_ops *ops)
|
||||
|
||||
/* Define additional commands that are usually only used by monitors. */
|
||||
|
||||
extern initialize_file_ftype _initialize_remote_monitors; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_remote_monitors (void)
|
||||
{
|
||||
|
@ -612,6 +612,8 @@ ns32k_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
|
||||
return (gdbarch);
|
||||
}
|
||||
|
||||
extern initialize_file_ftype _initialize_ns32k_tdep; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_ns32k_tdep (void)
|
||||
{
|
||||
|
@ -61,6 +61,8 @@ ns32knbsd_aout_osabi_sniffer (bfd *abfd)
|
||||
return GDB_OSABI_UNKNOWN;
|
||||
}
|
||||
|
||||
extern initialize_file_ftype _initialize_ns32knbsd_tdep; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_ns32knbsd_tdep (void)
|
||||
{
|
||||
|
@ -1710,7 +1710,7 @@ find_objc_msgcall (CORE_ADDR pc, CORE_ADDR *new_pc)
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern initialize_file_ftype _initialize_objc_language;
|
||||
extern initialize_file_ftype _initialize_objc_language; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_objc_language (void)
|
||||
|
@ -1365,6 +1365,8 @@ bdm_read_register_command (char *args, int from_tty)
|
||||
|
||||
}
|
||||
|
||||
extern initialize_file_ftype _initialize_remote_ocd; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_remote_ocd (void)
|
||||
{
|
||||
|
@ -346,6 +346,8 @@ a wiggler, specify wiggler and then the port it is connected to\n\
|
||||
bdm_ppc_ops.to_magic = OPS_MAGIC;
|
||||
} /* init_bdm_ppc_ops */
|
||||
|
||||
extern initialize_file_ftype _initialize_bdm_ppc; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_bdm_ppc (void)
|
||||
{
|
||||
|
@ -196,6 +196,8 @@ ppcbug_open1 (char *args, int from_tty)
|
||||
monitor_open (args, &ppcbug_cmds1, from_tty);
|
||||
}
|
||||
|
||||
extern initialize_file_ftype _initialize_ppcbug_rom; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_ppcbug_rom (void)
|
||||
{
|
||||
|
@ -781,7 +781,7 @@ gbyte (void)
|
||||
return (high << 4) + low;
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
fetch_regs_from_dump (int (*nextchar) (), char *want)
|
||||
{
|
||||
int regno;
|
||||
@ -1873,7 +1873,7 @@ why_stop (void)
|
||||
/* Suck characters, if a string match, then return the strings index
|
||||
otherwise echo them. */
|
||||
|
||||
int
|
||||
static int
|
||||
expect_n (char **strings)
|
||||
{
|
||||
char *(ptr[10]);
|
||||
@ -2165,6 +2165,8 @@ target e7000 foobar";
|
||||
e7000_ops.to_magic = OPS_MAGIC;
|
||||
};
|
||||
|
||||
extern initialize_file_ftype _initialize_remote_e7000; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_remote_e7000 (void)
|
||||
{
|
||||
|
@ -168,6 +168,8 @@ est_open (char *args, int from_tty)
|
||||
monitor_open (args, &est_cmds, from_tty);
|
||||
}
|
||||
|
||||
extern initialize_file_ftype _initialize_est; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_est (void)
|
||||
{
|
||||
|
@ -140,6 +140,8 @@ hms_open (char *args, int from_tty)
|
||||
|
||||
int write_dos_tick_delay;
|
||||
|
||||
extern initialize_file_ftype _initialize_remote_hms; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_remote_hms (void)
|
||||
{
|
||||
|
@ -536,7 +536,7 @@ fputs_readable (const char *string, struct ui_file *file)
|
||||
timed out. TIMEOUT specifies timeout value in seconds.
|
||||
*/
|
||||
|
||||
int
|
||||
static int
|
||||
mips_expect_timeout (const char *string, int timeout)
|
||||
{
|
||||
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.
|
||||
*/
|
||||
|
||||
int
|
||||
static int
|
||||
mips_expect (const char *string)
|
||||
{
|
||||
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
|
||||
is assumed to be large enough). The only failure is a timeout. */
|
||||
int
|
||||
static int
|
||||
mips_getstring (char *string, int n)
|
||||
{
|
||||
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
|
||||
the MIPS protocol uses for the signal. */
|
||||
enum target_signal
|
||||
static enum target_signal
|
||||
mips_signal_from_protocol (int sig)
|
||||
{
|
||||
/* 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
|
||||
implement ordinary breakpoints using hardware facilities. */
|
||||
|
||||
int
|
||||
static int
|
||||
remote_mips_insert_hw_breakpoint (CORE_ADDR addr, char *contents_cache)
|
||||
{
|
||||
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
|
||||
implement ordinary breakpoints using hardware facilities. */
|
||||
|
||||
int
|
||||
static int
|
||||
remote_mips_remove_hw_breakpoint (CORE_ADDR addr, char *contents_cache)
|
||||
{
|
||||
if (strcmp (target_shortname, "lsi") == 0)
|
||||
@ -3477,6 +3477,8 @@ pmon_command (char *args, int from_tty)
|
||||
printf_filtered ("Received packet: %s\n", buf);
|
||||
}
|
||||
|
||||
extern initialize_file_ftype _initialize_remote_mips; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_remote_mips (void)
|
||||
{
|
||||
|
@ -146,7 +146,7 @@ arm_rdi_start_remote (char *dummy)
|
||||
/* Helper callbacks for the "host interface" structure. RDI functions call
|
||||
these to forward output from the target system and so forth. */
|
||||
|
||||
void
|
||||
static void
|
||||
voiddummy (void *dummy)
|
||||
{
|
||||
fprintf_unfiltered (gdb_stdout, "void dummy\n");
|
||||
@ -1009,6 +1009,8 @@ rdilogenable_command (char *args, int from_tty)
|
||||
" try y or n\n", args);
|
||||
}
|
||||
|
||||
extern initialize_file_ftype _initialize_remote_rdi; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_remote_rdi (void)
|
||||
{
|
||||
|
@ -374,7 +374,7 @@ rdp_init (int cold, int tty)
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
static void
|
||||
send_rdp (char *template,...)
|
||||
{
|
||||
char buf[200];
|
||||
@ -1403,6 +1403,8 @@ init_remote_rdp_ops (void)
|
||||
remote_rdp_ops.to_magic = OPS_MAGIC;
|
||||
}
|
||||
|
||||
extern initialize_file_ftype _initialize_remote_rdp; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_remote_rdp (void)
|
||||
{
|
||||
|
@ -246,6 +246,8 @@ rom68k_open (char *args, int from_tty)
|
||||
monitor_open (args, &rom68k_cmds, from_tty);
|
||||
}
|
||||
|
||||
extern initialize_file_ftype _initialize_rom68k; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_rom68k (void)
|
||||
{
|
||||
|
@ -3029,7 +3029,7 @@ rs6000_info_powerpc_command (char *args, int from_tty)
|
||||
|
||||
/* Initialization code. */
|
||||
|
||||
extern initialize_file_ftype _initialize_rs6000_tdep; /* -Wmissing-protypes */
|
||||
extern initialize_file_ftype _initialize_rs6000_tdep; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_rs6000_tdep (void)
|
||||
|
@ -45,7 +45,7 @@
|
||||
|
||||
/* Number of bytes of storage in the actual machine representation
|
||||
for register N. */
|
||||
int
|
||||
static int
|
||||
s390_register_raw_size (int reg_nr)
|
||||
{
|
||||
if (S390_FP0_REGNUM <= reg_nr
|
||||
@ -55,21 +55,21 @@ s390_register_raw_size (int reg_nr)
|
||||
return 4;
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
s390x_register_raw_size (int reg_nr)
|
||||
{
|
||||
return (reg_nr == S390_FPC_REGNUM)
|
||||
|| (reg_nr >= S390_FIRST_ACR && reg_nr <= S390_LAST_ACR) ? 4 : 8;
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
s390_cannot_fetch_register (int regno)
|
||||
{
|
||||
return (regno >= S390_FIRST_CR && regno < (S390_FIRST_CR + 9)) ||
|
||||
(regno >= (S390_FIRST_CR + 12) && regno <= S390_LAST_CR);
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
s390_register_byte (int reg_nr)
|
||||
{
|
||||
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);
|
||||
|
||||
int
|
||||
static int
|
||||
s390_readinstruction (bfd_byte instr[], CORE_ADDR at,
|
||||
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)
|
||||
{
|
||||
static char *register_names[] = {
|
||||
@ -175,7 +175,7 @@ s390_register_name (int reg_nr)
|
||||
|
||||
|
||||
|
||||
int
|
||||
static int
|
||||
s390_stab_reg_to_regnum (int regno)
|
||||
{
|
||||
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,
|
||||
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)
|
||||
{
|
||||
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)
|
||||
{
|
||||
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)
|
||||
{
|
||||
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 some reason the blockframe.c calls us with fi->next->fromleaf
|
||||
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)
|
||||
{
|
||||
CORE_ADDR sigcaller_pc;
|
||||
@ -901,7 +901,7 @@ s390_init_frame_pc_first (int next_fromleaf, struct frame_info *fi)
|
||||
return pc;
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
s390_init_extra_frame_info (int fromleaf, struct frame_info *fi)
|
||||
{
|
||||
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,
|
||||
in which case the framedata are read. */
|
||||
|
||||
void
|
||||
static void
|
||||
s390_frame_init_saved_regs (struct frame_info *fi)
|
||||
{
|
||||
|
||||
@ -970,7 +970,7 @@ s390_frame_saved_pc_nofix (struct frame_info *fi)
|
||||
return 0;
|
||||
}
|
||||
|
||||
CORE_ADDR
|
||||
static CORE_ADDR
|
||||
s390_frame_saved_pc (struct frame_info *fi)
|
||||
{
|
||||
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
|
||||
(get_frame_type (thisframe) == SIGTRAMP_FRAME) to 1 */
|
||||
|
||||
CORE_ADDR
|
||||
static CORE_ADDR
|
||||
s390_frame_chain (struct frame_info *thisframe)
|
||||
{
|
||||
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
|
||||
value into `valbuf' */
|
||||
void
|
||||
static void
|
||||
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.
|
||||
@ -1137,7 +1137,7 @@ s390_promote_integer_argument (struct type *valtype, char *valbuf,
|
||||
return (value);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
s390_store_return_value (struct type *valtype, char *valbuf)
|
||||
{
|
||||
int arglen;
|
||||
@ -1185,7 +1185,7 @@ gdb_print_insn_s390 (bfd_vma memaddr, disassemble_info * info)
|
||||
|
||||
|
||||
/* Not the most efficent code in the world */
|
||||
int
|
||||
static int
|
||||
s390_fp_regnum (void)
|
||||
{
|
||||
int regno = S390_SP_REGNUM;
|
||||
@ -1200,7 +1200,7 @@ s390_fp_regnum (void)
|
||||
return regno;
|
||||
}
|
||||
|
||||
CORE_ADDR
|
||||
static CORE_ADDR
|
||||
s390_read_fp (void)
|
||||
{
|
||||
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.
|
||||
Used in the contexts of the "return" command, and of
|
||||
target function calls from the debugger. */
|
||||
void
|
||||
static void
|
||||
s390_pop_frame (void)
|
||||
{
|
||||
/* 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
|
||||
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,
|
||||
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
|
||||
of data in register N. */
|
||||
struct type *
|
||||
static struct type *
|
||||
s390_register_virtual_type (int regno)
|
||||
{
|
||||
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)
|
||||
{
|
||||
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)
|
||||
{
|
||||
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)
|
||||
{
|
||||
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
|
||||
"real" code. */
|
||||
CORE_ADDR
|
||||
static CORE_ADDR
|
||||
s390_skip_prologue (CORE_ADDR pc)
|
||||
{
|
||||
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
|
||||
the new frame is not set up until the new function executes
|
||||
some instructions. */
|
||||
CORE_ADDR
|
||||
static CORE_ADDR
|
||||
s390_saved_pc_after_call (struct frame_info *frame)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
s390_address_class_name_to_type_flags (struct gdbarch *gdbarch, const char *name,
|
||||
int *type_flags_ptr)
|
||||
{
|
||||
@ -1779,7 +1779,7 @@ s390_address_class_name_to_type_flags (struct gdbarch *gdbarch, const char *name
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct gdbarch *
|
||||
static struct gdbarch *
|
||||
s390_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
|
||||
{
|
||||
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
|
||||
_initialize_s390_tdep (void)
|
||||
{
|
||||
|
@ -19,8 +19,8 @@
|
||||
Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#if defined __GO32__ || defined _WIN32
|
||||
#include "defs.h"
|
||||
#if defined __GO32__ || defined _WIN32
|
||||
#include "serial.h"
|
||||
#include "gdb_string.h"
|
||||
|
||||
@ -425,6 +425,8 @@ static struct serial_ops e7000pc_ops =
|
||||
|
||||
#endif /*_WIN32 or __GO32__*/
|
||||
|
||||
extern initialize_file_ftype _initialize_ser_e7000pc; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_ser_e7000pc (void)
|
||||
{
|
||||
|
@ -362,7 +362,7 @@ sh_breakpoint_from_pc (CORE_ADDR *pcptr, int *lenptr)
|
||||
#define MSYMBOL_IS_SPECIAL(msym) \
|
||||
(((long) MSYMBOL_INFO (msym) & 0x80000000) != 0)
|
||||
|
||||
void
|
||||
static void
|
||||
sh64_elf_make_msymbol_special (asymbol *sym, struct minimal_symbol *msym)
|
||||
{
|
||||
if (msym == NULL)
|
||||
@ -1239,7 +1239,7 @@ is_media_pseudo (int rn)
|
||||
&& rn <= tdep->FV_LAST_REGNUM);
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
sh64_get_gdb_regnum (int gcc_regnum, CORE_ADDR 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,
|
||||
struct frame_info *frame, int regnum,
|
||||
enum lval_type *lval)
|
||||
@ -3035,7 +3035,8 @@ sh64_show_regs (void)
|
||||
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)
|
||||
(*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");
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
sh_sh64_register_convert_to_virtual (int regnum, struct type *type,
|
||||
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");
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
sh_sh64_register_convert_to_raw (struct type *type, int regnum,
|
||||
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");
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
sh_pseudo_register_read (struct gdbarch *gdbarch, struct regcache *regcache,
|
||||
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,
|
||||
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,
|
||||
int reg_nr, const void *buffer)
|
||||
{
|
||||
@ -4123,7 +4124,7 @@ sh_print_register (int regnum)
|
||||
do_pseudo_register (regnum);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
sh_do_registers_info (int regnum, int fpregs)
|
||||
{
|
||||
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)
|
||||
{
|
||||
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)
|
||||
{
|
||||
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. */
|
||||
}
|
||||
|
||||
extern initialize_file_ftype _initialize_sh_tdep; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_sh_tdep (void)
|
||||
{
|
||||
|
@ -343,6 +343,8 @@ sh3_close (int quitting)
|
||||
}
|
||||
}
|
||||
|
||||
extern initialize_file_ftype _initialize_sh3_rom; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_sh3_rom (void)
|
||||
{
|
||||
|
@ -142,6 +142,8 @@ legacy_svr4_fetch_link_map_offsets (void)
|
||||
|
||||
#endif /* HAVE_LINK_H */
|
||||
|
||||
extern initialize_file_ftype _initialize_svr4_lm; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_svr4_lm (void)
|
||||
{
|
||||
|
@ -1455,6 +1455,8 @@ init_fetch_link_map_offsets (struct gdbarch *gdbarch)
|
||||
|
||||
static struct target_so_ops svr4_so_ops;
|
||||
|
||||
extern initialize_file_ftype _initialize_svr4_solib; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_svr4_solib (void)
|
||||
{
|
||||
|
@ -382,7 +382,7 @@ symbol_add_stub (void *arg)
|
||||
the section table. But we only use this for core files and
|
||||
processes we've just attached to, so that's okay. */
|
||||
|
||||
void
|
||||
static void
|
||||
update_solib_list (int from_tty, struct target_ops *target)
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
||||
extern initialize_file_ftype _initialize_solib; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_solib (void)
|
||||
{
|
||||
|
@ -2186,7 +2186,7 @@ sparc_do_registers_info (int regnum, int all)
|
||||
#endif
|
||||
|
||||
|
||||
int
|
||||
static int
|
||||
gdb_print_insn_sparc (bfd_vma memaddr, disassemble_info *info)
|
||||
{
|
||||
/* 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. */
|
||||
|
||||
void
|
||||
static void
|
||||
sparc_store_return_value (struct type *type, char *valbuf)
|
||||
{
|
||||
int regno;
|
||||
@ -2597,6 +2597,8 @@ static struct gdbarch * sparc_gdbarch_init (struct gdbarch_info info,
|
||||
struct gdbarch_list *arches);
|
||||
static void sparc_dump_tdep (struct gdbarch *, struct ui_file *);
|
||||
|
||||
extern initialize_file_ftype _initialize_sparc_tdep; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_sparc_tdep (void)
|
||||
{
|
||||
@ -2611,7 +2613,7 @@ _initialize_sparc_tdep (void)
|
||||
/* Compensate for stack bias. Note that we currently don't handle
|
||||
mixed 32/64 bit code. */
|
||||
|
||||
CORE_ADDR
|
||||
static CORE_ADDR
|
||||
sparc64_read_sp (void)
|
||||
{
|
||||
CORE_ADDR sp = read_register (SP_REGNUM);
|
||||
@ -2621,7 +2623,7 @@ sparc64_read_sp (void)
|
||||
return sp;
|
||||
}
|
||||
|
||||
CORE_ADDR
|
||||
static CORE_ADDR
|
||||
sparc64_read_fp (void)
|
||||
{
|
||||
CORE_ADDR fp = read_register (DEPRECATED_FP_REGNUM);
|
||||
@ -2631,7 +2633,7 @@ sparc64_read_fp (void)
|
||||
return fp;
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
sparc64_write_sp (CORE_ADDR val)
|
||||
{
|
||||
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
|
||||
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,
|
||||
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
|
||||
returned in f0-f3). */
|
||||
|
||||
void
|
||||
static void
|
||||
sp64_extract_return_value (struct type *type, char *regbuf, char *valbuf,
|
||||
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)
|
||||
{
|
||||
sp64_extract_return_value (type, regbuf, valbuf, 0);
|
||||
@ -2855,7 +2857,7 @@ sparc32_stack_align (CORE_ADDR addr)
|
||||
return ((addr + 7) & -8);
|
||||
}
|
||||
|
||||
extern CORE_ADDR
|
||||
static CORE_ADDR
|
||||
sparc64_stack_align (CORE_ADDR addr)
|
||||
{
|
||||
return ((addr + 15) & -16);
|
||||
@ -2993,7 +2995,7 @@ sparc64_register_name (int regno)
|
||||
// OBSOLETE }
|
||||
#endif
|
||||
|
||||
CORE_ADDR
|
||||
static CORE_ADDR
|
||||
sparc_push_return_address (CORE_ADDR pc_unused, CORE_ADDR sp)
|
||||
{
|
||||
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. */
|
||||
|
||||
int
|
||||
static int
|
||||
sparc_y_regnum (void)
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
sparc_intreg_size (void)
|
||||
{
|
||||
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. */
|
||||
CORE_ADDR
|
||||
sparc_fetch_pointer_argument (struct frame_info *frame, int argi, struct type *type)
|
||||
static CORE_ADDR
|
||||
sparc_fetch_pointer_argument (struct frame_info *frame, int argi,
|
||||
struct type *type)
|
||||
{
|
||||
CORE_ADDR addr;
|
||||
frame_read_register (frame, O0_REGNUM + argi, &addr);
|
||||
|
@ -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
|
||||
frame. */
|
||||
|
||||
CORE_ADDR
|
||||
static CORE_ADDR
|
||||
v850_find_callers_reg (struct frame_info *fi, int regnum)
|
||||
{
|
||||
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
|
||||
function call was made. */
|
||||
|
||||
CORE_ADDR
|
||||
static CORE_ADDR
|
||||
v850_frame_chain (struct frame_info *fi)
|
||||
{
|
||||
struct prologue_info pi;
|
||||
@ -850,7 +850,7 @@ v850_frame_chain (struct frame_info *fi)
|
||||
/* Function: skip_prologue
|
||||
Return the address of the first code past the prologue of the function. */
|
||||
|
||||
CORE_ADDR
|
||||
static CORE_ADDR
|
||||
v850_skip_prologue (CORE_ADDR pc)
|
||||
{
|
||||
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'
|
||||
command, or the call dummy breakpoint gets hit. */
|
||||
|
||||
void
|
||||
static void
|
||||
v850_pop_frame (void)
|
||||
{
|
||||
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.
|
||||
*/
|
||||
|
||||
CORE_ADDR
|
||||
static CORE_ADDR
|
||||
v850_push_arguments (int nargs, struct value **args, CORE_ADDR sp,
|
||||
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.
|
||||
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)
|
||||
{
|
||||
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
|
||||
will be found. */
|
||||
|
||||
CORE_ADDR
|
||||
static CORE_ADDR
|
||||
v850_frame_saved_pc (struct frame_info *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
|
||||
*/
|
||||
|
||||
void
|
||||
static void
|
||||
v850_fix_call_dummy (char *dummy, CORE_ADDR sp, CORE_ADDR fun, int nargs,
|
||||
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;
|
||||
}
|
||||
|
||||
extern initialize_file_ftype _initialize_v850_tdep; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_v850_tdep (void)
|
||||
{
|
||||
|
@ -428,6 +428,8 @@ vax_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
|
||||
return (gdbarch);
|
||||
}
|
||||
|
||||
extern initialize_file_ftype _initialize_vax_tdep; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_vax_tdep (void)
|
||||
{
|
||||
|
@ -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).
|
||||
*/
|
||||
|
||||
CORE_ADDR
|
||||
static CORE_ADDR
|
||||
xstormy16_push_return_address (CORE_ADDR pc, CORE_ADDR sp)
|
||||
{
|
||||
unsigned char buf[xstormy16_pc_size];
|
||||
@ -995,7 +995,7 @@ xstormy16_stack_align (CORE_ADDR addr)
|
||||
return addr;
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
xstormy16_save_dummy_frame_tos (CORE_ADDR sp)
|
||||
{
|
||||
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.
|
||||
Called by gdb at start-up. */
|
||||
|
||||
extern initialize_file_ftype _initialize_xstormy16_tdep; /* -Wmissing-prototypes */
|
||||
|
||||
void
|
||||
_initialize_xstormy16_tdep (void)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user