* dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
authorTom Tromey <tromey@redhat.com>
Mon, 21 Jun 2010 19:49:19 +0000 (19:49 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 21 Jun 2010 19:49:19 +0000 (19:49 +0000)
(dwarf_type_encoding_name): Likewise.

gdb/ChangeLog
gdb/dwarf2read.c

index de7d59bb02b7792f131b83c9eb97509eb103c2ac..dce4a93d2abef9cd08acf9658f9adf323f726535 100644 (file)
@@ -1,3 +1,8 @@
+2010-06-21  Tom Tromey  <tromey@redhat.com>
+
+       * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
+       (dwarf_type_encoding_name): Likewise.
+
 2010-06-21  Tom Tromey  <tromey@redhat.com>
 
        * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
index f9abf0a9459dca3e39e82db43b7d9d6ee509db14..bab1fba759fbbf0fb94d150f15b93815cb60512f 100644 (file)
@@ -6212,6 +6212,11 @@ read_base_type (struct die_info *die, struct dwarf2_cu *cu)
          code = TYPE_CODE_CHAR;
        type_flags |= TYPE_FLAG_UNSIGNED;
        break;
+      case DW_ATE_UTF:
+       /* We just treat this as an integer and then recognize the
+          type by name elsewhere.  */
+       break;
+
       default:
        complaint (&symfile_complaints, _("unsupported DW_AT_encoding: '%s'"),
                   dwarf_type_encoding_name (encoding));
@@ -10402,6 +10407,9 @@ dwarf_type_encoding_name (unsigned enc)
       return "DW_ATE_unsigned_fixed";
     case DW_ATE_decimal_float:
       return "DW_ATE_decimal_float";
+    /* DWARF 4.  */
+    case DW_ATE_UTF:
+      return "DW_ATE_UTF";
     /* HP extensions.  */
     case DW_ATE_HP_float80:
       return "DW_ATE_HP_float80";