This is the mail archive of the dwarf2@corp.sgi.com mailing list for the dwarf2 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

DW_FORM_block1 questions


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]