projects
/
platform
/
upstream
/
binutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Automatic date update in version.in
[platform/upstream/binutils.git]
/
gdb
/
arm-wince-tdep.c
diff --git
a/gdb/arm-wince-tdep.c
b/gdb/arm-wince-tdep.c
index
e63dc89
..
aff8d20
100644
(file)
--- 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.
/* Target-dependent code for Windows CE running on ARM processors,
for GDB.
- Copyright (C) 2007-201
3
Free Software Foundation, Inc.
+ Copyright (C) 2007-201
4
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-24,8
+24,6
@@
#include "target.h"
#include "frame.h"
#include "target.h"
#include "frame.h"
-#include <string.h>
-
#include "arm-tdep.h"
#include "windows-tdep.h"
#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:
CORE_ADDR next_pc;
/* The format of an ARM DLL trampoline is:
+
ldr ip, [pc]
ldr pc, [ip]
ldr ip, [pc]
ldr pc, [ip]
- .dw __imp_<func> */
+ .dw __imp_<func>
+
+ */
if (pc == 0
|| read_memory_unsigned_integer (pc + 0, 4, byte_order) != 0xe59fc000
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;
if (indsym.minsym == NULL)
return 0;
- symname = SYMBOL_LINKAGE_NAME (indsym.minsym);
+ symname =
M
SYMBOL_LINKAGE_NAME (indsym.minsym);
if (symname == NULL || strncmp (symname, "__imp_", 6) != 0)
return 0;
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
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)
+ &&
M
SYMBOL_LINKAGE_NAME (s.minsym) != NULL
+ && strcmp (
M
SYMBOL_LINKAGE_NAME (s.minsym), "__gccmain") == 0)
pc += 4;
}
pc += 4;
}