diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-03-02 00:06:11 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-03-02 00:06:11 +0000 |
commit | cdea452b9c1e0dde1a8663fd12e09c5f3c160dd0 (patch) | |
tree | a421cfcb5ad15b5e02a27442d1f361c8c4897f54 /gdb/tic6x-tdep.c | |
parent | c53b1649cbc30746659af45cd4a97426c0ccec23 (diff) | |
download | gdb-cdea452b9c1e0dde1a8663fd12e09c5f3c160dd0.tar.gz |
gdb/
Fix -Wmissing-prototypes build.
* alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
* amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
* amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
* arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
(_initialize_arm_symbian_tdep): New prototype.
* arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
* i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
* i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
static.
* lm32-tdep.c (_initialize_lm32_tdep): New prototype.
* microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
prototype.
* microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
(microblaze_skip_prologue, microblaze_frame_cache): Make them static.
* mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
static.
* moxie-tdep.c (moxie_process_record): Likewise.
* remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
(mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
* rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
(_initialize_rl78_tdep): New prototype.
* rx-tdep.c (rx_breakpoint_from_pc): Make it static.
(_initialize_rx_tdep): New prototype.
* solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
(_initialize_darwin_solib): New prototype.
* solib-spu.c: Include solib-spu.h.
(_initialize_spu_solib): New prototype.
* spu-multiarch.c (_initialize_spu_multiarch): New prototype.
* tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
(tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
(tic6x_software_single_step): Make it static.
(_initialize_tic6x_tdep): New prototype.
Diffstat (limited to 'gdb/tic6x-tdep.c')
-rw-r--r-- | gdb/tic6x-tdep.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/gdb/tic6x-tdep.c b/gdb/tic6x-tdep.c index 2661cb28c4c..2dce8da0723 100644 --- a/gdb/tic6x-tdep.c +++ b/gdb/tic6x-tdep.c @@ -146,7 +146,7 @@ static int tic6x_register_number (int reg, int side, int crosspath); Bail out early if CURRENT_PC is reached. Returns the address of the first instruction after the prologue. */ -CORE_ADDR +static CORE_ADDR tic6x_analyze_prologue (struct gdbarch *gdbarch, const CORE_ADDR start_pc, const CORE_ADDR current_pc, struct tic6x_unwind_cache *cache, @@ -298,7 +298,7 @@ tic6x_analyze_prologue (struct gdbarch *gdbarch, const CORE_ADDR start_pc, /* This is the implementation of gdbarch method skip_prologue. */ -CORE_ADDR +static CORE_ADDR tic6x_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR start_pc) { CORE_ADDR limit_pc; @@ -324,7 +324,7 @@ tic6x_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR start_pc) /* This is the implementation of gdbarch method breakpiont_from_pc. */ -const unsigned char* +static const unsigned char* tic6x_breakpoint_from_pc (struct gdbarch *gdbarch, CORE_ADDR *bp_addr, int *bp_size) { @@ -398,7 +398,7 @@ tic6x_unwind_sp (struct gdbarch *gdbarch, struct frame_info *this_frame) /* Frame base handling. */ -struct tic6x_unwind_cache* +static struct tic6x_unwind_cache* tic6x_frame_unwind_cache (struct frame_info *this_frame, void **this_prologue_cache) { @@ -698,7 +698,7 @@ tic6x_get_next_pc (struct frame_info *frame, CORE_ADDR pc) /* This is the implementation of gdbarch method software_single_step. */ -int +static int tic6x_software_single_step (struct frame_info *frame) { struct gdbarch *gdbarch = get_frame_arch (frame); @@ -1377,6 +1377,9 @@ tic6x_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) return gdbarch; } +/* -Wmissing-prototypes */ +extern initialize_file_ftype _initialize_tic6x_tdep; + void _initialize_tic6x_tdep (void) { |