diff options
author | Jim Blandy <jimb@codesourcery.com> | 2001-01-24 00:22:47 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2001-01-24 00:22:47 +0000 |
commit | 090c42a489b89e7c70385b16abd3fa8a839e665b (patch) | |
tree | 65d3bc7402175424dfdf4eaaff7f88658d860ead | |
parent | 29e5738069326d025cb0aecc2aab25186ef669b8 (diff) | |
download | gdb-090c42a489b89e7c70385b16abd3fa8a839e665b.zip gdb-090c42a489b89e7c70385b16abd3fa8a839e665b.tar.gz gdb-090c42a489b89e7c70385b16abd3fa8a839e665b.tar.bz2 |
* dwarf2read.c (read_tag_const_type, read_tag_volatile_type):
Implement these correctly, using make_cv_type.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/dwarf2read.c | 12 |
2 files changed, 13 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 29f8da4..6e843f4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-01-23 Jim Blandy <jimb@redhat.com> + + * dwarf2read.c (read_tag_const_type, read_tag_volatile_type): + Implement these correctly, using make_cv_type. + 2001-01-23 J.T. Conklin <jtc@redback.com> * exec.c (xfer_memory): Add attrib argument. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 7f75672..f91aa38 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -2653,26 +2653,30 @@ static void read_tag_const_type (struct die_info *die, struct objfile *objfile, const struct comp_unit_head *cu_header) { + struct type *base_type; + if (die->type) { return; } - complain (&dwarf2_const_ignored); - die->type = die_type (die, objfile, cu_header); + base_type = die_type (die, objfile, cu_header); + die->type = make_cv_type (1, TYPE_VOLATILE (base_type), base_type, 0); } static void read_tag_volatile_type (struct die_info *die, struct objfile *objfile, const struct comp_unit_head *cu_header) { + struct type *base_type; + if (die->type) { return; } - complain (&dwarf2_volatile_ignored); - die->type = die_type (die, objfile, cu_header); + base_type = die_type (die, objfile, cu_header); + die->type = make_cv_type (TYPE_CONST (base_type), 1, base_type, 0); } /* Extract all information from a DW_TAG_string_type DIE and add to |