From: Fred Fish Date: Mon, 21 Jan 2002 20:12:36 +0000 (+0000) Subject: Approved by fnasser@redhat.com: X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3d74b771bdbf29aebb570a482839590ebce4da48;p=binutils-gdb.git Approved by fnasser@redhat.com: 2002-01-21 Fred Fish * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue when we have found all instructions we are looking for. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4fdc0eb439f..62cdb39dcb5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-01-21 Fred Fish + + * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue + when we have found all instructions we are looking for. + 2002-01-21 Richard Earnshaw * arm-tdep.c (arm_register_name): New function. diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index a7aa6263f78..15ae2d35283 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 */