GCC Wikia
Advertisement

このページを編集する際は,編集に関する方針に従ってください.[]

概要[]

実装[]

*dwarf2.h
 242 /* Attribute names and codes.  */
243 enum dwarf_attribute
244   {
245     DW_AT_sibling = 0x01,
246     DW_AT_location = 0x02,
247     DW_AT_name = 0x03,
248     DW_AT_ordering = 0x09,
249     DW_AT_subscr_data = 0x0a,
250     DW_AT_byte_size = 0x0b,
251     DW_AT_bit_offset = 0x0c,
252     DW_AT_bit_size = 0x0d,
253     DW_AT_element_list = 0x0f,
254     DW_AT_stmt_list = 0x10,
255     DW_AT_low_pc = 0x11,
256     DW_AT_high_pc = 0x12,
257     DW_AT_language = 0x13,
258     DW_AT_member = 0x14,
259     DW_AT_discr = 0x15,
260     DW_AT_discr_value = 0x16,
261     DW_AT_visibility = 0x17,
262     DW_AT_import = 0x18,
263     DW_AT_string_length = 0x19,
264     DW_AT_common_reference = 0x1a,
265     DW_AT_comp_dir = 0x1b,
266     DW_AT_const_value = 0x1c,
267     DW_AT_containing_type = 0x1d,
268     DW_AT_default_value = 0x1e,
269     DW_AT_inline = 0x20,
270     DW_AT_is_optional = 0x21,
271     DW_AT_lower_bound = 0x22,
272     DW_AT_producer = 0x25,
273     DW_AT_prototyped = 0x27,
274     DW_AT_return_addr = 0x2a,
275     DW_AT_start_scope = 0x2c,
276     DW_AT_stride_size = 0x2e,
277     DW_AT_upper_bound = 0x2f,
278     DW_AT_abstract_origin = 0x31,
279     DW_AT_accessibility = 0x32,
280     DW_AT_address_class = 0x33,
281     DW_AT_artificial = 0x34,
282     DW_AT_base_types = 0x35,
283     DW_AT_calling_convention = 0x36,
284     DW_AT_count = 0x37,
285     DW_AT_data_member_location = 0x38,
286     DW_AT_decl_column = 0x39,
287     DW_AT_decl_file = 0x3a,
288     DW_AT_decl_line = 0x3b,
289     DW_AT_declaration = 0x3c,
290     DW_AT_discr_list = 0x3d,
291     DW_AT_encoding = 0x3e,
292     DW_AT_external = 0x3f,
293     DW_AT_frame_base = 0x40,
294     DW_AT_friend = 0x41,
295     DW_AT_identifier_case = 0x42,
296     DW_AT_macro_info = 0x43,
297     DW_AT_namelist_items = 0x44,
298     DW_AT_priority = 0x45,
299     DW_AT_segment = 0x46,
300     DW_AT_specification = 0x47,
301     DW_AT_static_link = 0x48,
302     DW_AT_type = 0x49,
303     DW_AT_use_location = 0x4a,
304     DW_AT_variable_parameter = 0x4b,
305     DW_AT_virtuality = 0x4c,
306     DW_AT_vtable_elem_location = 0x4d,
 307     /* DWARF 3 values.  */
308     DW_AT_allocated     = 0x4e,
309     DW_AT_associated    = 0x4f,
310     DW_AT_data_location = 0x50,
311     DW_AT_stride        = 0x51,
312     DW_AT_entry_pc      = 0x52,
313     DW_AT_use_UTF8      = 0x53,
314     DW_AT_extension     = 0x54,
315     DW_AT_ranges        = 0x55,
316     DW_AT_trampoline    = 0x56,
317     DW_AT_call_column   = 0x57,
318     DW_AT_call_file     = 0x58,
319     DW_AT_call_line     = 0x59,
 320     /* SGI/MIPS extensions.  */
321     DW_AT_MIPS_fde = 0x2001,
322     DW_AT_MIPS_loop_begin = 0x2002,
323     DW_AT_MIPS_tail_loop_begin = 0x2003,
324     DW_AT_MIPS_epilog_begin = 0x2004,
325     DW_AT_MIPS_loop_unroll_factor = 0x2005,
326     DW_AT_MIPS_software_pipeline_depth = 0x2006,
327     DW_AT_MIPS_linkage_name = 0x2007,
328     DW_AT_MIPS_stride = 0x2008,
329     DW_AT_MIPS_abstract_name = 0x2009,
330     DW_AT_MIPS_clone_origin = 0x200a,
331     DW_AT_MIPS_has_inlines = 0x200b,
 332     /* HP extensions.  */
333     DW_AT_HP_block_index         = 0x2000,
334     DW_AT_HP_unmodifiable        = 0x2001, /* Same as DW_AT_MIPS_fde.  */
335     DW_AT_HP_actuals_stmt_list   = 0x2010,
336     DW_AT_HP_proc_per_section    = 0x2011,
337     DW_AT_HP_raw_data_ptr        = 0x2012,
338     DW_AT_HP_pass_by_reference   = 0x2013,
339     DW_AT_HP_opt_level           = 0x2014,
340     DW_AT_HP_prof_version_id     = 0x2015,
341     DW_AT_HP_opt_flags           = 0x2016,
342     DW_AT_HP_cold_region_low_pc  = 0x2017,
343     DW_AT_HP_cold_region_high_pc = 0x2018,
344     DW_AT_HP_all_variables_modifiable = 0x2019,
345     DW_AT_HP_linkage_name        = 0x201a,
346     DW_AT_HP_prof_flags          = 0x201b,  /* In comp unit of procs_info for -g.  */
 347     /* GNU extensions.  */
348     DW_AT_sf_names   = 0x2101,
349     DW_AT_src_info   = 0x2102,
350     DW_AT_mac_info   = 0x2103,
351     DW_AT_src_coords = 0x2104,
352     DW_AT_body_begin = 0x2105,
353     DW_AT_body_end   = 0x2106,
354     DW_AT_GNU_vector = 0x2107,
 355     /* VMS extensions.  */
356     DW_AT_VMS_rtnbeg_pd_address = 0x2201,
 357     /* UPC extension.  */
358     DW_AT_upc_threads_scaled = 0x3210,
 359     /* PGI (STMicroelectronics) extensions.  */
360     DW_AT_PGI_lbase    = 0x3a00,
361     DW_AT_PGI_soffset  = 0x3a01,
362     DW_AT_PGI_lstride  = 0x3a02
363   };
~
***-
~
*dwarf.h
*FROM_XXXはenum dwarf_formにて定義
  96 /* Attribute names and codes.  */
97 
98 enum dwarf_attribute {
99     AT_sibling                  = (0x0010|FORM_REF),
100     AT_location                 = (0x0020|FORM_BLOCK2),
101     AT_name                     = (0x0030|FORM_STRING),
102     AT_fund_type                = (0x0050|FORM_DATA2),
103     AT_mod_fund_type            = (0x0060|FORM_BLOCK2),
104     AT_user_def_type            = (0x0070|FORM_REF),
105     AT_mod_u_d_type             = (0x0080|FORM_BLOCK2),
106     AT_ordering                 = (0x0090|FORM_DATA2),
107     AT_subscr_data              = (0x00a0|FORM_BLOCK2),
108     AT_byte_size                = (0x00b0|FORM_DATA4),
109     AT_bit_offset               = (0x00c0|FORM_DATA2),
110     AT_bit_size                 = (0x00d0|FORM_DATA4),
 111                                 /* (0x00e0|FORM_xxxx) -- reserved */
112     AT_element_list             = (0x00f0|FORM_BLOCK4),
113     AT_stmt_list                = (0x0100|FORM_DATA4),
114     AT_low_pc                   = (0x0110|FORM_ADDR),
115     AT_high_pc                  = (0x0120|FORM_ADDR),
116     AT_language                 = (0x0130|FORM_DATA4),
117     AT_member                   = (0x0140|FORM_REF),
118     AT_discr                    = (0x0150|FORM_REF),
119     AT_discr_value              = (0x0160|FORM_BLOCK2),
 120                                 /* (0x0170|FORM_xxxx) -- reserved */
 121                                 /* (0x0180|FORM_xxxx) -- reserved */
122     AT_string_length            = (0x0190|FORM_BLOCK2),
123     AT_common_reference         = (0x01a0|FORM_REF),
124     AT_comp_dir                 = (0x01b0|FORM_STRING),
125         AT_const_value_string   = (0x01c0|FORM_STRING),
126         AT_const_value_data2    = (0x01c0|FORM_DATA2),
127         AT_const_value_data4    = (0x01c0|FORM_DATA4),
128         AT_const_value_data8    = (0x01c0|FORM_DATA8),
129         AT_const_value_block2   = (0x01c0|FORM_BLOCK2),
130         AT_const_value_block4   = (0x01c0|FORM_BLOCK4),
131     AT_containing_type          = (0x01d0|FORM_REF),
132         AT_default_value_addr   = (0x01e0|FORM_ADDR),
133         AT_default_value_data2  = (0x01e0|FORM_DATA2),
134         AT_default_value_data4  = (0x01e0|FORM_DATA4),
135         AT_default_value_data8  = (0x01e0|FORM_DATA8),
136         AT_default_value_string = (0x01e0|FORM_STRING),
137     AT_friends                  = (0x01f0|FORM_BLOCK2),
138     AT_inline                   = (0x0200|FORM_STRING),
139     AT_is_optional              = (0x0210|FORM_STRING),
140         AT_lower_bound_ref      = (0x0220|FORM_REF),
141         AT_lower_bound_data2    = (0x0220|FORM_DATA2),
142         AT_lower_bound_data4    = (0x0220|FORM_DATA4),
143         AT_lower_bound_data8    = (0x0220|FORM_DATA8),
144     AT_private                  = (0x0240|FORM_STRING),
145     AT_producer                 = (0x0250|FORM_STRING),
146     AT_program                  = (0x0230|FORM_STRING),
147     AT_protected                = (0x0260|FORM_STRING),
148     AT_prototyped               = (0x0270|FORM_STRING),
149     AT_public                   = (0x0280|FORM_STRING),
150     AT_pure_virtual             = (0x0290|FORM_STRING),
151     AT_return_addr              = (0x02a0|FORM_BLOCK2),
152     AT_abstract_origin          = (0x02b0|FORM_REF),
153     AT_start_scope              = (0x02c0|FORM_DATA4),
154     AT_stride_size              = (0x02e0|FORM_DATA4),
155         AT_upper_bound_ref      = (0x02f0|FORM_REF),
156         AT_upper_bound_data2    = (0x02f0|FORM_DATA2),
157         AT_upper_bound_data4    = (0x02f0|FORM_DATA4),
158         AT_upper_bound_data8    = (0x02f0|FORM_DATA8),
159     AT_virtual                  = (0x0300|FORM_STRING),
160 
 161     /* GNU extensions.  */
162 
163     AT_sf_names                 = (0x8000|FORM_DATA4),
164     AT_src_info                 = (0x8010|FORM_DATA4),
165     AT_mac_info                 = (0x8020|FORM_DATA4),
166     AT_src_coords               = (0x8030|FORM_DATA4),
167     AT_body_begin               = (0x8040|FORM_ADDR),
168     AT_body_end                 = (0x8050|FORM_ADDR)
169 };


リンク元

Advertisement