[Dwarf-Discuss] Resend Encoding large constant values

Tommy Hoffner thoffner at ca.ibm.com
Sun Sep 16 12:34:58 PDT 2012


Seems like the mailing list cut my first attempt in half.

The standard way of encoding a constant value seems to be something like:

<2><  196>      DW_TAG_constant
                DW_AT_name                  rans2
                DW_AT_const_value           16
                DW_AT_decl_file             1
                DW_AT_decl_line             0
                DW_AT_type                  <143>

Where we have the following abbrevation
<   6><   69><code:  6> DW_TAG_constant           DW_CHILDREN_no
      <   72>           DW_AT_name                  DW_FORM_string
      <   74>           DW_AT_const_value           DW_FORM_data4
      <   76>           DW_AT_decl_file             DW_FORM_data1
      <   78>           DW_AT_decl_line             DW_FORM_data1
      <   80>           DW_AT_type                  DW_FORM_ref4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dwarfstd.org/private.cgi/dwarf-discuss-dwarfstd.org/attachments/20120916/bc01f1f3/attachment-0001.htm>


More information about the Dwarf-Discuss mailing list