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/stabsread.c | |
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/stabsread.c')
-rw-r--r-- | gdb/stabsread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c index dd0373b..b5cddf7 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -938,12 +938,12 @@ define_symbol (valu, string, desc, type, objfile) #endif /* !BELIEVE_PCC_PROMOTION. */ case 'P': - /* acc seems to use P to delare the prototypes of functions that + /* acc seems to use P to declare the prototypes of functions that are referenced by this file. gdb is not prepared to deal with this extra information. FIXME, it ought to. */ if (type == N_FUN) { - read_type (&p, objfile); + SYMBOL_TYPE (sym) = read_type (&p, objfile); goto process_prototype_types; } /*FALLTHROUGH*/ |