bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/18359] New: objdump can't print correct DW_AT_encoding nam


From: jamesgua at ca dot ibm.com
Subject: [Bug binutils/18359] New: objdump can't print correct DW_AT_encoding name
Date: Wed, 29 Apr 2015 18:51:53 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=18359

            Bug ID: 18359
           Summary: objdump can't print correct DW_AT_encoding name
           Product: binutils
           Version: 2.23
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot 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)

version:
GNU objdump version 2.23.52.0.1-30.ael7b 20130226
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) any later version.
This program has absolutely no warranty.

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]