diff options
author | Daniel Jacobowitz <drow@false.org> | 2001-12-07 22:11:51 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2001-12-07 22:11:51 +0000 |
commit | a02fd225edb13af1ba10ec58d3795b7572b46e54 (patch) | |
tree | 4a915d746f05e37c30638ef7f03ef501b9a01860 /gdb/stabsread.c | |
parent | 5178b9d60203ce67999ecad2fc5ba8a2b7b363db (diff) | |
download | gdb-a02fd225edb13af1ba10ec58d3795b7572b46e54.zip gdb-a02fd225edb13af1ba10ec58d3795b7572b46e54.tar.gz gdb-a02fd225edb13af1ba10ec58d3795b7572b46e54.tar.bz2 |
* 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 2063923..8a46acf 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); } |