From: Andreas Schwab Date: Tue, 17 Apr 2007 15:07:21 +0000 (+0000) Subject: * symtab.c (skip_prologue_using_sal): Allow the end of the prologue X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9193427347c48c04b9d61b275e6270c31b063b97;p=binutils-gdb.git * symtab.c (skip_prologue_using_sal): Allow the end of the prologue sal to be bigger than the end of the function. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3b60b276ae1..ff3186798f8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-04-17 Andreas Schwab + + * 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 Nigel Stephens diff --git a/gdb/symtab.c b/gdb/symtab.c index 7e6d03164ab..5dbce041d61 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -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) {