diff options
author | Peter Schauer <Peter.Schauer@mytum.de> | 1996-02-24 20:32:48 +0000 |
---|---|---|
committer | Peter Schauer <Peter.Schauer@mytum.de> | 1996-02-24 20:32:48 +0000 |
commit | a97a483ca8ec1399ae3eb210945a117512880581 (patch) | |
tree | 4710bc6a51abc292bd8763f4fb4b3a47e3ff8eaf /gdb/partial-stab.h | |
parent | 053ae1d77a5efa6f1918de5dcb2bd06083b7be5f (diff) | |
download | gdb-a97a483ca8ec1399ae3eb210945a117512880581.zip gdb-a97a483ca8ec1399ae3eb210945a117512880581.tar.gz gdb-a97a483ca8ec1399ae3eb210945a117512880581.tar.bz2 |
* partial-stab.h (case N_FUN): Function symbols generated
by SPARCworks cc have a meaningless zero value, do not update
pst->textlow if the function symbol value is zero.
* stabsread.c (define_symbol): Initialize SYMBOL_TYPE field
for function prototype declaration symbols.
Diffstat (limited to 'gdb/partial-stab.h')
-rw-r--r-- | gdb/partial-stab.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gdb/partial-stab.h b/gdb/partial-stab.h index b01eb1e..988ef0e 100644 --- a/gdb/partial-stab.h +++ b/gdb/partial-stab.h @@ -568,7 +568,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ the bounds created by N_SO symbols. If that's the case use the address of this function as the low bound for the partial symbol table. */ - if (pst->textlow == 0 || CUR_SYMBOL_VALUE < pst->textlow) + if (pst->textlow == 0 + || (CUR_SYMBOL_VALUE < pst->textlow + && CUR_SYMBOL_VALUE + != ANOFFSET (section_offsets, SECT_OFF_TEXT))) pst->textlow = CUR_SYMBOL_VALUE; #endif /* DBXREAD_ONLY */ ADD_PSYMBOL_TO_LIST (namestring, p - namestring, @@ -604,7 +607,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ the bounds created by N_SO symbols. If that's the case use the address of this function as the low bound for the partial symbol table. */ - if (pst->textlow == 0 || CUR_SYMBOL_VALUE < pst->textlow) + if (pst->textlow == 0 + || (CUR_SYMBOL_VALUE < pst->textlow + && CUR_SYMBOL_VALUE + != ANOFFSET (section_offsets, SECT_OFF_TEXT))) pst->textlow = CUR_SYMBOL_VALUE; #endif /* DBXREAD_ONLY */ ADD_PSYMBOL_TO_LIST (namestring, p - namestring, |