X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gdb%2Farm-wince-tdep.c;h=aff8d20e030ab9d94445ee021b12b7f93a99602f;hb=5aa03310cef09e8c41aaa05152d9570dfe62ba81;hp=e63dc89d690e30aa50e3bf1f7b56c7bb05f70e60;hpb=0e9f083f4cb94a9dc861f38ba151aac06efce2b8;p=platform%2Fupstream%2Fbinutils.git diff --git a/gdb/arm-wince-tdep.c b/gdb/arm-wince-tdep.c index e63dc89..aff8d20 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-2014 Free Software Foundation, Inc. This file is part of GDB. @@ -24,8 +24,6 @@ #include "target.h" #include "frame.h" -#include - #include "arm-tdep.h" #include "windows-tdep.h" @@ -47,9 +45,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,7 +65,7 @@ arm_pe_skip_trampoline_code (struct frame_info *frame, CORE_ADDR pc) if (indsym.minsym == NULL) return 0; - symname = SYMBOL_LINKAGE_NAME (indsym.minsym); + symname = MSYMBOL_LINKAGE_NAME (indsym.minsym); if (symname == NULL || strncmp (symname, "__imp_", 6) != 0) return 0; @@ -102,8 +103,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) + && MSYMBOL_LINKAGE_NAME (s.minsym) != NULL + && strcmp (MSYMBOL_LINKAGE_NAME (s.minsym), "__gccmain") == 0) pc += 4; }