aboutsummaryrefslogtreecommitdiff
path: root/gdb/arm-tdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/arm-tdep.c')
-rw-r--r--gdb/arm-tdep.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 357dcd6..afe578f 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -485,6 +485,12 @@ arm_skip_prologue (CORE_ADDR pc)
}
if ((inst & 0xfffff000) == 0xe24cb000) /* sub fp, ip, #nn */
+ {
+ skip_pc += 4;
+ inst = read_memory_integer (skip_pc, 4);
+ }
+
+ if ((inst & 0xfffff000) == 0xe24dd000) /* sub sp, sp, #nn */
skip_pc += 4;
return skip_pc;