forked from Imagelibrary/binutils-gdb
* 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.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user