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.
This commit is contained in:
Fred Fish
2002-01-21 20:12:36 +00:00
parent 968ec2b9ac
commit 3d74b771bd
2 changed files with 9 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
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.
2002-01-21 Richard Earnshaw <rearnsha@arm.com>
* arm-tdep.c (arm_register_name): New function.

View File

@@ -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 */