* symtab.c (skip_prologue_using_sal): Allow the end of the prologue
authorAndreas Schwab <schwab@linux-m68k.org>
Tue, 17 Apr 2007 15:07:21 +0000 (15:07 +0000)
committerAndreas Schwab <schwab@linux-m68k.org>
Tue, 17 Apr 2007 15:07:21 +0000 (15:07 +0000)
sal to be bigger than the end of the function.

gdb/ChangeLog
gdb/symtab.c

index 3b60b27..ff31867 100644 (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>
 
index 7e6d031..5dbce04 100644 (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)
        {