diff options
author | Michael Snyder <msnyder@vmware.com> | 2002-04-23 18:10:06 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2002-04-23 18:10:06 +0000 |
commit | 11d3b27da0d860a46e5660dca1aac5ab4ad86cfe (patch) | |
tree | 9785a2863efe31986bd920b63fcff9c8b2442932 /gdb/arm-tdep.c | |
parent | b7efdfcc1bd069d486162bc76c3b3fb6ca802eaf (diff) | |
download | gdb-11d3b27da0d860a46e5660dca1aac5ab4ad86cfe.zip gdb-11d3b27da0d860a46e5660dca1aac5ab4ad86cfe.tar.gz gdb-11d3b27da0d860a46e5660dca1aac5ab4ad86cfe.tar.bz2 |
2002-04-22 Michael Snyder <msnyder@redhat.com>
* arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
Diffstat (limited to 'gdb/arm-tdep.c')
-rw-r--r-- | gdb/arm-tdep.c | 6 |
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; |