From 11d3b27da0d860a46e5660dca1aac5ab4ad86cfe Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Tue, 23 Apr 2002 18:10:06 +0000 Subject: [PATCH] 2002-04-22 Michael Snyder * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn". --- gdb/ChangeLog | 3 ++- gdb/arm-tdep.c | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2f3fec9317d..8f110861a51 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -39,7 +39,8 @@ 2002-04-22 Michael Snyder - * arm-tdep.c: Some whitespace and coding standards tweaks. + * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn". + Some whitespace and coding standards tweaks. 2002-04-22 Jason Thorpe diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 357dcd65550..afe578feb99 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; -- 2.30.2