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.
+2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ 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.
+
2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
Fix -Wmissing-prototypes build.
is found, attempt to step through it. A breakpoint is placed at the end of
the sequence. */
-int
+static int
alpha_deal_with_atomic_sequence (struct frame_info *frame)
{
struct gdbarch *gdbarch = get_frame_arch (frame);
set_solib_ops (gdbarch, &darwin_so_ops);
}
+/* -Wmissing-prototypes */
+extern initialize_file_ftype _initialize_amd64_darwin_tdep;
+
void
_initialize_amd64_darwin_tdep (void)
{
set_solib_ops (gdbarch, &solib_target_so_ops);
}
+/* -Wmissing-prototypes */
+extern initialize_file_ftype _initialize_amd64_windows_tdep;
+
void
_initialize_amd64_windows_tdep (void)
{
/* If PC is in a DLL import stub, return the address of the `real'
function belonging to the stub. */
-CORE_ADDR
+static CORE_ADDR
arm_symbian_skip_trampoline_code (struct frame_info *frame, CORE_ADDR pc)
{
struct gdbarch *gdbarch;
return GDB_OSABI_SYMBIAN;
}
+/* -Wmissing-prototypes */
+extern initialize_file_ftype _initialize_arm_symbian_tdep;
+
void
_initialize_arm_symbian_tdep (void)
{
the address of the instruction following that call. Otherwise, it
simply returns PC. */
-CORE_ADDR
+static CORE_ADDR
arm_wince_skip_main_prologue (struct gdbarch *gdbarch, CORE_ADDR pc)
{
enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
return GDB_OSABI_UNKNOWN;
}
+/* -Wmissing-prototypes */
+extern initialize_file_ftype _initialize_i386_darwin_tdep;
+
void
_initialize_i386_darwin_tdep (void)
{
which does not seem worth it. The same effect is achieved by patching that
'nop' instruction there instead. */
-struct displaced_step_closure *
+static struct displaced_step_closure *
i386_linux_displaced_step_copy_insn (struct gdbarch *gdbarch,
CORE_ADDR from, CORE_ADDR to,
struct regcache *regs)
return gdbarch;
}
+/* -Wmissing-prototypes */
+extern initialize_file_ftype _initialize_lm32_tdep;
+
void
_initialize_lm32_tdep (void)
{
µblaze_linux_sighandler_tramp_frame);
}
+/* -Wmissing-prototypes */
+extern initialize_file_ftype _initialize_microblaze_linux_tdep;
+
void
_initialize_microblaze_linux_tdep (void)
{
\f
static int microblaze_debug_flag = 0;
-void
+static void
microblaze_debug (const char *fmt, ...)
{
if (microblaze_debug_flag)
\f
/* Fetch the instruction at PC. */
-unsigned long
+static unsigned long
microblaze_fetch_instruction (CORE_ADDR pc)
{
enum bfd_endian byte_order = gdbarch_byte_order (target_gdbarch);
/* Return PC of first real instruction of the function starting at
START_PC. */
-CORE_ADDR
+static CORE_ADDR
microblaze_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR start_pc)
{
struct symtab_and_line sal;
/* Normal frames. */
-struct microblaze_frame_cache *
+static struct microblaze_frame_cache *
microblaze_frame_cache (struct frame_info *next_frame, void **this_cache)
{
struct microblaze_frame_cache *cache;
mips64_fill_fpregset (regcache, (mips64_elf_fpregset_t *)gregs, regnum);
}
-const struct regset *
+static const struct regset *
mips_linux_regset_from_core_section (struct gdbarch *gdbarch,
const char *sect_name, size_t sect_size)
{
memory that will be changed in current instruction to "record_arch_list".
Return -1 if something wrong. */
-int
+static int
moxie_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
CORE_ADDR addr)
{
is the number of hardware breakpoints already installed. This
implements the target_can_use_hardware_watchpoint macro. */
-int
+static int
mips_can_use_watchpoint (int type, int cnt, int othertype)
{
return cnt < MAX_LSI_BREAKPOINTS && strcmp (target_shortname, "lsi") == 0;
for a write watchpoint, 1 for a read watchpoint, or 2 for a read/write
watchpoint. */
-int
+static int
mips_insert_watchpoint (CORE_ADDR addr, int len, int type,
struct expression *cond)
{
/* Remove a watchpoint. */
-int
+static int
mips_remove_watchpoint (CORE_ADDR addr, int len, int type,
struct expression *cond)
{
/* Test to see if a watchpoint has been hit. Return 1 if so; return 0,
if not. */
-int
+static int
mips_stopped_by_watchpoint (void)
{
return hit_watchpoint;
/* Implement the "breakpoint_from_pc" gdbarch method. */
-const gdb_byte *
+static const gdb_byte *
rl78_breakpoint_from_pc (struct gdbarch *gdbarch, CORE_ADDR *pcptr,
int *lenptr)
{
return gdbarch;
}
+/* -Wmissing-prototypes */
+extern initialize_file_ftype _initialize_rl78_tdep;
+
/* Register the above initialization routine. */
void
}
/* Implement the "breakpoint_from_pc" gdbarch method. */
-const gdb_byte *
+static const gdb_byte *
rx_breakpoint_from_pc (struct gdbarch *gdbarch, CORE_ADDR *pcptr, int *lenptr)
{
static gdb_byte breakpoint[] = { 0x00 };
return gdbarch;
}
+/* -Wmissing-prototypes */
+extern initialize_file_ftype _initialize_rx_tdep;
+
/* Register the above initialization routine. */
+
void
_initialize_rx_tdep (void)
{
/* Return 1 if PC lies in the dynamic symbol resolution code of the
run time loader. */
-int
+static int
darwin_in_dynsym_resolve_code (CORE_ADDR pc)
{
return 0;
struct target_so_ops darwin_so_ops;
+/* -Wmissing-prototypes */
+extern initialize_file_ftype _initialize_darwin_solib;
+
void
_initialize_darwin_solib (void)
{
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
+#include "solib-spu.h"
#include "gdbcore.h"
#include "gdb_string.h"
#include "gdb_assert.h"
}
}
+/* -Wmissing-prototypes */
+extern initialize_file_ftype _initialize_spu_solib;
+
void
_initialize_spu_solib (void)
{
spu_ops.to_magic = OPS_MAGIC;
}
+/* -Wmissing-prototypes */
+extern initialize_file_ftype _initialize_spu_multiarch;
+
void
_initialize_spu_multiarch (void)
{
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,
/* 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;
/* 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)
{
/* 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)
{
/* 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);
return gdbarch;
}
+/* -Wmissing-prototypes */
+extern initialize_file_ftype _initialize_tic6x_tdep;
+
void
_initialize_tic6x_tdep (void)
{