mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-15 03:48:11 +08:00
* dwarf2read.c (read_tag_const_type, read_tag_volatile_type):
Implement these correctly, using make_cv_type.
This commit is contained in:
@ -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.
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user