diff options
author | Daniel Jacobowitz <dan@debian.org> | 2001-12-07 22:11:51 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2001-12-07 22:11:51 +0000 |
commit | b31a48f76d1197e7595987308d3749648ef822d5 (patch) | |
tree | d7538ebb63af0d51ff1a88cad5897af242f6edf1 /gdb/stabsread.c | |
parent | 7137a6c4873b0d45cb27f4d4f130a7e2c95623ed (diff) | |
download | gdb-b31a48f76d1197e7595987308d3749648ef822d5.tar.gz |
* gdbtypes.c (finish_cv_type): New function.
(check_typedef): Remove ``register'' keyword from argument.
Preserve const and volatile attributes across filling in
opaque types.
* gdbtypes.h (finish_cv_type): Add prototype.
* hp-symtab-read.c (hpread_read_struct_type): Call finish_cv_type.
* stabsread.c (read_struct_type): Likewise.
* dwarf2read.c (read_structure_scope): Likewise. Remove redundant
assignment to die->type.
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r-- | gdb/stabsread.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c index 206392305db..8a46acf9b01 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -4090,6 +4090,8 @@ read_struct_type (char **pp, struct type *type, struct objfile *objfile) type = error_type (pp, objfile); } + /* Fix up any cv-qualified versions of this type. */ + finish_cv_type (type); do_cleanups (back_to); return (type); } |