https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65934

            Bug ID: 65934
           Summary: objdump can't print correct DW_AT_encoding name
           Product: gcc
           Version: 4.8.3
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jamesgua at ca dot ibm.com
  Target Milestone: ---

In DWARF 4 spec DW_ATE_UTF is value 0x10 or 16, but objdump can't map that
value to UTF, instead, print "unknown type":

e.g.
char16_t utf16 = u'a';
...
<3><148>: Abbrev Number: 7 (DW_TAG_variable)
    <149>   DW_AT_name        : (indirect string, offset: 0x139): utf16
    <14d>   DW_AT_decl_file   : 1
    <14e>   DW_AT_decl_line   : 9
    <14f>   DW_AT_type        : <0x178>
    <153>   DW_AT_location    : 3 byte block: 91 de 7e  (DW_OP_fbreg: -162)
...
<1><178>: Abbrev Number: 2 (DW_TAG_base_type)
    <179>   DW_AT_byte_size   : 2
    <17a>   DW_AT_encoding    : 16      (unknown type)
    <17b>   DW_AT_name        : (indirect string, offset: 0x13f): char16_t

It should be displayed UTF like similar to other values 
...
<1c8>   DW_AT_encoding    : 7       (unsigned)

Reply via email to