aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2017-02-21 13:32:57 -0800
committerKeith Seitz <keiths@redhat.com>2017-02-21 13:32:57 -0800
commit60118de9f17bc6c9b4ad5b0a7fe7aa2aa764d283 (patch)
tree4d4816ffe63a6fdb7729be1e783c41a0b574aeb5
parentc8770059869c0154981f4cba4a2c86810ca18d44 (diff)
downloadgdb-60118de9f17bc6c9b4ad5b0a7fe7aa2aa764d283.zip
gdb-60118de9f17bc6c9b4ad5b0a7fe7aa2aa764d283.tar.gz
gdb-60118de9f17bc6c9b4ad5b0a7fe7aa2aa764d283.tar.bz2
Do not canonicalize base type names.
gdb/ChangeLog * dwarf2read.c (dwarf2_name): Do not canonicalize names for DW_TAG_base_type.
-rw-r--r--gdb/dwarf2read.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 4b8fdb9..540ae1a 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -20468,9 +20468,12 @@ dwarf2_name (struct die_info *die, struct dwarf2_cu *cu)
if (!DW_STRING_IS_CANONICAL (attr))
{
- DW_STRING (attr)
- = dwarf2_canonicalize_name (DW_STRING (attr), cu,
- &cu->objfile->per_bfd->storage_obstack);
+ if (die->tag != DW_TAG_base_type)
+ {
+ DW_STRING (attr)
+ = dwarf2_canonicalize_name (DW_STRING (attr), cu,
+ &cu->objfile->per_bfd->storage_obstack);
+ }
DW_STRING_IS_CANONICAL (attr) = 1;
}
return DW_STRING (attr);