X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gdb%2Farm-symbian-tdep.c;h=a0e8d96bb4a9b1df9b5d4429f80f8b6fb79e6a76;hb=5aa03310cef09e8c41aaa05152d9570dfe62ba81;hp=8e06852e58a49e72d064b2dadc551174bd4c7c44;hpb=ab38a727c990476872ac4995792fc0d38d922d7f;p=platform%2Fupstream%2Fbinutils.git diff --git a/gdb/arm-symbian-tdep.c b/gdb/arm-symbian-tdep.c index 8e06852..a0e8d96 100644 --- a/gdb/arm-symbian-tdep.c +++ b/gdb/arm-symbian-tdep.c @@ -1,7 +1,6 @@ /* ARM Symbian OS target support. - Copyright (C) 2008, 2009, 2010 - Free Software Foundation, Inc. + Copyright (C) 2008-2014 Free Software Foundation, Inc. This file is part of GDB. @@ -30,7 +29,7 @@ /* 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; @@ -39,7 +38,7 @@ arm_symbian_skip_trampoline_code (struct frame_info *frame, CORE_ADDR pc) CORE_ADDR dest; gdb_byte buf[4]; - if (!in_plt_section (pc, NULL)) + if (!in_plt_section (pc)) return 0; if (target_read_memory (pc, buf, 4) != 0) @@ -90,7 +89,7 @@ arm_symbian_init_abi (struct gdbarch_info info, static enum gdb_osabi arm_symbian_osabi_sniffer (bfd *abfd) { - Elf_Internal_Phdr *phdrs, **segments; + Elf_Internal_Phdr *phdrs; long phdrs_size; int num_phdrs, i; @@ -122,6 +121,9 @@ arm_symbian_osabi_sniffer (bfd *abfd) return GDB_OSABI_SYMBIAN; } +/* -Wmissing-prototypes */ +extern initialize_file_ftype _initialize_arm_symbian_tdep; + void _initialize_arm_symbian_tdep (void) {