* symtab.c (skip_prologue_using_sal): Allow the end of the prologue

sal to be bigger than the end of the function.
This commit is contained in:
Andreas Schwab 2007-04-17 15:07:21 +00:00
parent 968b53918b
commit 9193427347
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-04-17 Andreas Schwab <schwab@suse.de>
* symtab.c (skip_prologue_using_sal): Allow the end of the prologue
sal to be bigger than the end of the function.
2007-04-17 Maciej W. Rozycki <macro@mips.com>
Nigel Stephens <nigel@mips.com>

View File

@ -4111,7 +4111,7 @@ skip_prologue_using_sal (CORE_ADDR func_addr)
/* If there is only one sal that covers the entire function,
then it is probably a single line function, like
"foo(){}". */
if (prologue_sal.end == end_pc)
if (prologue_sal.end >= end_pc)
return 0;
while (prologue_sal.end < end_pc)
{