UNIX 目标文件初探( 六 )


<1>: Abbrev Number: 2 (DW_TAG_base_type)
DW_AT_name: (indirect string, offset: 0x46): long long int
DW_AT_byte_size: 8
DW_AT_encoding: 5 (signed)
<1>: Abbrev Number: 2 (DW_TAG_base_type)
DW_AT_name: (indirect string, offset: 0x86): long long unsigned int
DW_AT_byte_size: 8
DW_AT_encoding: 7 (unsigned)
<1>: Abbrev Number: 2 (DW_TAG_base_type)
DW_AT_name: (indirect string, offset: 0x4b): long int
DW_AT_byte_size: 4
DW_AT_encoding: 5 (signed)
<1>: Abbrev Number: 2 (DW_TAG_base_type)
DW_AT_name: (indirect string, offset: 0x90): unsigned int
DW_AT_byte_size: 4
DW_AT_encoding: 7 (unsigned)
<1>: Abbrev Number: 2 (DW_TAG_base_type)
DW_AT_name: (indirect string, offset: 0x5d): char
DW_AT_byte_size: 1
DW_AT_encoding: 6 (signed char)
<1>: Abbrev Number: 4 (DW_TAG_variable)
DW_AT_name: (indirect string, offset: 0xb0): _IO_stdin_used
DW_AT_decl_file: 1
DW_AT_decl_line: 25
DW_AT_type: <105>
DW_AT_external: 1
DW_AT_location: 5 byte block: 3 7c 84 4 8 (DW_OP_addr: 804847c)
<1><105>: Abbrev Number: 5 (DW_TAG_const_type)
DW_AT_type:
 Compilation Unit @ offset 0x10b:
Length:140
Version:2
Abbrev Offset: 86
Pointer Size: 4
<0><116>: Abbrev Number: 1 (DW_TAG_compile_unit)
DW_AT_stmt_list: 0x82
DW_AT_name: /build/buildd/glibc-2.3.6/build-tree/i386-libc/csu/crti.S
DW_AT_comp_dir: /build/buildd/glibc-2.3.6/build-tree/glibc-2.3.6/csu
DW_AT_producer: GNU AS 2.16.91
DW_AT_language: 32769 (MIPS assembler)
 Compilation Unit @ offset 0x19b:
Length:140
Version:2
Abbrev Offset: 102
Pointer Size: 4
<0><1a6>: Abbrev Number: 1 (DW_TAG_compile_unit)
DW_AT_stmt_list: 0x12f
DW_AT_name: /build/buildd/glibc-2.3.6/build-tree/i386-libc/csu/crtn.S
DW_AT_comp_dir: /build/buildd/glibc-2.3.6/build-tree/glibc-2.3.6/csu
DW_AT_producer: GNU AS 2.16.91
DW_AT_language: 32769 (MIPS assembler)
Contents of the .debug_abbrev section:
 Number TAG
1 DW_TAG_compile_unit[no children]
DW_AT_stmt_listDW_FORM_data4
DW_AT_low_pcDW_FORM_addr
DW_AT_high_pc DW_FORM_addr
DW_AT_name DW_FORM_string
DW_AT_comp_dir DW_FORM_string
DW_AT_producer DW_FORM_string
DW_AT_language DW_FORM_data2
 Number TAG
1 DW_TAG_compile_unit[has children]
DW_AT_stmt_listDW_FORM_data4
DW_AT_high_pc DW_FORM_addr
DW_AT_low_pcDW_FORM_addr
DW_AT_producer DW_FORM_strp
DW_AT_language DW_FORM_data1
DW_AT_name DW_FORM_strp
DW_AT_comp_dir DW_FORM_strp
2 DW_TAG_base_type[no children]
DW_AT_name DW_FORM_strp
DW_AT_byte_sizeDW_FORM_data1
DW_AT_encoding DW_FORM_data1
3 DW_TAG_base_type[no children]
DW_AT_name DW_FORM_string
DW_AT_byte_sizeDW_FORM_data1
DW_AT_encoding DW_FORM_data1
4 DW_TAG_variable[no children]
DW_AT_name DW_FORM_strp
DW_AT_decl_fileDW_FORM_data1
DW_AT_decl_lineDW_FORM_data1
DW_AT_type DW_FORM_ref4
DW_AT_external DW_FORM_flag
DW_AT_location DW_FORM_block1
5 DW_TAG_const_type[no children]
DW_AT_type DW_FORM_ref4
 Number TAG
1 DW_TAG_compile_unit[no children]
DW_AT_stmt_listDW_FORM_data4
DW_AT_name DW_FORM_string
DW_AT_comp_dir DW_FORM_string
DW_AT_producer DW_FORM_string
DW_AT_language DW_FORM_data2
 Number TAG
1 DW_TAG_compile_unit[no children]
DW_AT_stmt_listDW_FORM_data4
DW_AT_name DW_FORM_string
DW_AT_comp_dir DW_FORM_string
DW_AT_producer DW_FORM_string
DW_AT_language DW_FORM_data2
Dump of debug contents of section .debug_line:
 Length: 87
 DWARF Version:2
 Prologue Length: 50

推荐阅读