This is the mail archive of the
dwarf2@corp.sgi.com
mailing list for the dwarf2 project.
DW_FORM_block1 questions
- From: Toshiyasu Morita <toshiyasu dot morita at hsa dot hitachi dot com>
- To: dwarf2 at els dot sgi dot com
- Date: Tue, 17 Dec 2002 18:48:29 -0800
- Subject: DW_FORM_block1 questions
- Reply-to: Toshiyasu Morita <toshiyasu dot morita at hsa dot hitachi dot com>
Some version of GCC appear to use DW_FORM_block1 for the DW_AT_frame_base of
a DW_TAG_subprogram
in the .debug_abbrev section, e.g.
.debug_abbrev:
...
DW_TAG_subprogram [has children]
DW_AT_sibling DW_FORM_ref4
DW_AT_external DW_FORM_flag
DW_AT_name DW_FORM_string
DW_AT_decl_file DW_FORM_data1
DW_AT_decl_line DW_FORM_data1
DW_AT_prototyped DW_FORM_flag
DW_AT_low_pc DW_FORM_addr
DW_AT_high_pc DW_FORM_addr
DW_AT_frame_base DW_FORM_block1
Is the DW_FORM_block1 in target-endian format?
This isn't clarified in the DWARF 2.0 spec section 7.5.4 "Attribute
Encodings".
It merely states:
"Blocks come in four forms. The first consists of a 1-byte length followed
by
0 to 255 contiguous information bytes (DW_FORM_block1). The second
consists..."
Toshi