aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2001-12-07 22:11:51 +0000
committerDaniel Jacobowitz <drow@false.org>2001-12-07 22:11:51 +0000
commita02fd225edb13af1ba10ec58d3795b7572b46e54 (patch)
tree4a915d746f05e37c30638ef7f03ef501b9a01860 /gdb/dwarf2read.c
parent5178b9d60203ce67999ecad2fc5ba8a2b7b363db (diff)
downloadgdb-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/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index a788efb..7e1e2ce 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -2381,7 +2381,7 @@ read_structure_scope (struct die_info *die, struct objfile *objfile,
TYPE_FLAGS (type) |= TYPE_FLAG_STUB;
}
- die->type = type;
+ finish_cv_type (die->type);
}
/* Given a pointer to a die which begins an enumeration, process all