X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Farm-wince-tdep.c;h=188174ab94464fc98b5fa941442cf3a08a86bb66;hb=030a2e78acf66c5c12e073ec3887a167da7a7195;hp=0e888e06bedcc033a8d63f99984d71765a10ea54;hpb=29f9ebfa6bd44a7000a0a7503a0bdd95e1a44346;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/arm-wince-tdep.c b/gdb/arm-wince-tdep.c index 0e888e06be..188174ab94 100644 --- a/gdb/arm-wince-tdep.c +++ b/gdb/arm-wince-tdep.c @@ -1,7 +1,7 @@ /* Target-dependent code for Windows CE running on ARM processors, for GDB. - Copyright (C) 2007-2013 Free Software Foundation, Inc. + Copyright (C) 2007-2020 Free Software Foundation, Inc. This file is part of GDB. @@ -24,8 +24,7 @@ #include "target.h" #include "frame.h" -#include "gdb_string.h" - +#include "arch/arm.h" #include "arm-tdep.h" #include "windows-tdep.h" @@ -33,7 +32,7 @@ static const gdb_byte arm_wince_le_breakpoint[] = { 0x10, 0x00, 0x00, 0xe6 }; static const gdb_byte arm_wince_thumb_le_breakpoint[] = { 0xfe, 0xdf }; /* Description of the longjmp buffer. */ -#define ARM_WINCE_JB_ELEMENT_SIZE INT_REGISTER_SIZE +#define ARM_WINCE_JB_ELEMENT_SIZE ARM_INT_REGISTER_SIZE #define ARM_WINCE_JB_PC 10 static CORE_ADDR @@ -47,9 +46,12 @@ arm_pe_skip_trampoline_code (struct frame_info *frame, CORE_ADDR pc) CORE_ADDR next_pc; /* The format of an ARM DLL trampoline is: + ldr ip, [pc] ldr pc, [ip] - .dw __imp_ */ + .dw __imp_ + + */ if (pc == 0 || read_memory_unsigned_integer (pc + 0, 4, byte_order) != 0xe59fc000 @@ -64,8 +66,8 @@ arm_pe_skip_trampoline_code (struct frame_info *frame, CORE_ADDR pc) if (indsym.minsym == NULL) return 0; - symname = SYMBOL_LINKAGE_NAME (indsym.minsym); - if (symname == NULL || strncmp (symname, "__imp_", 6) != 0) + symname = indsym.minsym->linkage_name (); + if (symname == NULL || !startswith (symname, "__imp_")) return 0; next_pc = read_memory_unsigned_integer (indirect, 4, byte_order); @@ -102,8 +104,8 @@ arm_wince_skip_main_prologue (struct gdbarch *gdbarch, CORE_ADDR pc) struct bound_minimal_symbol s = lookup_minimal_symbol_by_pc (call_dest); if (s.minsym != NULL - && SYMBOL_LINKAGE_NAME (s.minsym) != NULL - && strcmp (SYMBOL_LINKAGE_NAME (s.minsym), "__gccmain") == 0) + && s.minsym->linkage_name () != NULL + && strcmp (s.minsym->linkage_name (), "__gccmain") == 0) pc += 4; } @@ -152,9 +154,6 @@ arm_wince_osabi_sniffer (bfd *abfd) return GDB_OSABI_UNKNOWN; } -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_arm_wince_tdep (void); - void _initialize_arm_wince_tdep (void) {