diff options
author | John Gilmore <gnu@cygnus> | 1992-01-27 22:10:05 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1992-01-27 22:10:05 +0000 |
commit | 5a4e72150520b0379fc6bce7debd6e98b0b3ec26 (patch) | |
tree | b887ec85bb47bbf7f5ae38ca29a7bdcaff5afa2c /gdb/buildsym.c | |
parent | dc72b0b67900108ef033f0ffabb8e06ffa591e0b (diff) | |
download | gdb-5a4e72150520b0379fc6bce7debd6e98b0b3ec26.zip gdb-5a4e72150520b0379fc6bce7debd6e98b0b3ec26.tar.gz gdb-5a4e72150520b0379fc6bce7debd6e98b0b3ec26.tar.bz2 |
* buildsym.c (read_struct_type): Circumvent sun3 sunos "--" compiler bug.
* c-exp.y (yylex): `this' and `template' are only tokens in C++.
* target.c (target_xfer_memory): Return errno in preference to EIO.
Diffstat (limited to 'gdb/buildsym.c')
-rw-r--r-- | gdb/buildsym.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/buildsym.c b/gdb/buildsym.c index ae1d9f9..243cbe2 100644 --- a/gdb/buildsym.c +++ b/gdb/buildsym.c @@ -2475,8 +2475,10 @@ read_struct_type (pp, type) TYPE_NFN_FIELDS_TOTAL (TYPE_BASECLASS (type, i)); } - for (n = nfn_fields; mainlist; mainlist = mainlist->next) - TYPE_FN_FIELDLISTS (type)[--n] = mainlist->fn_fieldlist; + for (n = nfn_fields; mainlist; mainlist = mainlist->next) { + --n; /* Circumvent Sun3 compiler bug */ + TYPE_FN_FIELDLISTS (type)[n] = mainlist->fn_fieldlist; + } if (**pp == '~') { |