aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorPierre Muller <muller@sourceware.org>2010-05-21 20:34:47 +0000
committerPierre Muller <muller@sourceware.org>2010-05-21 20:34:47 +0000
commit90e7c2c53dbfe0bed392088324625bc7e6518e5d (patch)
treeda3905beb8b1a5677d24ec67a2a6b80db957a417 /gdb/dwarf2read.c
parent6a286118b53a8804e60a53112520dba897f6605a (diff)
downloadgdb-90e7c2c53dbfe0bed392088324625bc7e6518e5d.zip
gdb-90e7c2c53dbfe0bed392088324625bc7e6518e5d.tar.gz
gdb-90e7c2c53dbfe0bed392088324625bc7e6518e5d.tar.bz2
* dwarf2read.c (process_die): Also allow DW_TAG_const_type
and DW_TAG_volatile_type. (new_symbol): Likewise.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 196fccc..f4ef780 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -3194,6 +3194,8 @@ process_die (struct die_info *die, struct dwarf2_cu *cu)
case DW_TAG_base_type:
case DW_TAG_subrange_type:
case DW_TAG_typedef:
+ case DW_TAG_const_type:
+ case DW_TAG_volatile_type:
/* Add a typedef symbol for the type definition, if it has a
DW_AT_name. */
new_symbol (die, read_type_die (die, cu), cu);
@@ -8742,6 +8744,8 @@ new_symbol (struct die_info *die, struct type *type, struct dwarf2_cu *cu)
break;
case DW_TAG_base_type:
case DW_TAG_subrange_type:
+ case DW_TAG_const_type:
+ case DW_TAG_volatile_type:
SYMBOL_CLASS (sym) = LOC_TYPEDEF;
SYMBOL_DOMAIN (sym) = VAR_DOMAIN;
add_symbol_to_list (sym, cu->list_in_scope);