aboutsummaryrefslogtreecommitdiff
path: root/gdb/arm-tdep.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>2002-01-21 20:12:36 +0000
committerFred Fish <fnf@specifix.com>2002-01-21 20:12:36 +0000
commit3d74b771bdbf29aebb570a482839590ebce4da48 (patch)
tree0989c1ce937ea0177d527a7bf4a40b38a6479ad7 /gdb/arm-tdep.c
parent968ec2b9acd1032ea51a8c7c602eda5948e41a2b (diff)
downloadgdb-3d74b771bdbf29aebb570a482839590ebce4da48.zip
gdb-3d74b771bdbf29aebb570a482839590ebce4da48.tar.gz
gdb-3d74b771bdbf29aebb570a482839590ebce4da48.tar.bz2
Approved by fnasser@redhat.com:
2002-01-21 Fred Fish <fnf@redhat.com> * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue when we have found all instructions we are looking for.
Diffstat (limited to 'gdb/arm-tdep.c')
-rw-r--r--gdb/arm-tdep.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index a7aa626..15ae2d3 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -375,6 +375,10 @@ thumb_skip_prologue (CORE_ADDR pc, CORE_ADDR func_end)
{
findmask |= 2; /* setting of r7 found */
}
+ else if (findmask == (4+2+1))
+ {
+ break; /* We have found one of each type of prologue instruction */
+ }
else
continue; /* something in the prolog that we don't care about or some
instruction from outside the prolog scheduled here for optimization */