]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Do not canonicalize base type names.
authorKeith Seitz <keiths@redhat.com>
Tue, 21 Feb 2017 21:32:57 +0000 (13:32 -0800)
committerKeith Seitz <keiths@redhat.com>
Tue, 21 Feb 2017 21:32:57 +0000 (13:32 -0800)
gdb/ChangeLog

* dwarf2read.c (dwarf2_name): Do not canonicalize names
for DW_TAG_base_type.

gdb/dwarf2read.c

index 4b8fdb93a2d836dcb838eb2634fd17bb2085f868..540ae1a931c7c18a74070e31eef940f92b2ed238 100644 (file)
@@ -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);