diff options
author | Joel Brobecker <brobecker@gnat.com> | 2006-10-06 20:42:02 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2006-10-06 20:42:02 +0000 |
commit | 714e295ef033e42b85d0f74fe523d3850e5e0fa4 (patch) | |
tree | d0d00cea92e396e1368347495e484c70abb1cdd6 /gdb/dwarf2read.c | |
parent | 12e14209f0834b6d3d9884a586b558c32eb2607c (diff) | |
download | gdb-714e295ef033e42b85d0f74fe523d3850e5e0fa4.zip gdb-714e295ef033e42b85d0f74fe523d3850e5e0fa4.tar.gz gdb-714e295ef033e42b85d0f74fe523d3850e5e0fa4.tar.bz2 |
* dwarf2read.c (read_array_type): Set the type name if the name
attribute is present.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index a56a5c2..381585f 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -4282,6 +4282,10 @@ read_array_type (struct die_info *die, struct dwarf2_cu *cu) if (attr) TYPE_FLAGS (type) |= TYPE_FLAG_VECTOR; + attr = dwarf2_attr (die, DW_AT_name, cu); + if (attr && DW_STRING (attr)) + TYPE_NAME (type) = DW_STRING (attr); + do_cleanups (back_to); /* Install the type in the die. */ |