
test:     file format elf32-i386

Contents of the .eh_frame section:

00000000 ZERO terminator


Contents of the .debug_aranges section:

  Length:                   44
  Version:                  2
  Offset into .debug_info:  0x0
  Pointer Size:             4
  Segment Size:             0

    Address    Length
    08048394 00000005 
    0804839c 00000007 
    080483a4 00000007 
    00000000 00000000 

Contents of the .debug_pubnames section:

  Length:                              51
  Version:                             2
  Offset into .debug_info section:     0x0
  Size of area in .debug_info section: 286

    Offset	Name
    70    	_Dmodule_ref
    bb    	main
    fe    	_Dmain

Contents of the .debug_info section:

  Compilation Unit @ offset 0x0:
   Length:        0x11a (32-bit)
   Version:       2
   Abbrev Offset: 0
   Pointer Size:  4
 <0><b>: Abbrev Number: 1 (DW_TAG_compile_unit)
    < c>   DW_AT_producer    : Digital Mars D v2.042	
    <22>   DW_AT_language    : 1	(ANSI C)
    <23>   DW_AT_name        : test.d	
    <2a>   DW_AT_comp_dir    : /tmp	
    <2f>   DW_AT_low_pc      : 0x0	
    <33>   DW_AT_entry_pc    : 0x0	
    <37>   DW_AT_ranges      : 0x0	
    <3b>   DW_AT_stmt_list   : 0x0	
 <1><3f>: Abbrev Number: 2 (DW_TAG_module)
    <40>   DW_AT_name        : test	
 <1><45>: Abbrev Number: 3 (DW_TAG_subroutine_type)
    <46>   DW_AT_prototyped  : 1	
    <47>   DW_AT_type        : <0x0>	
 <1><4b>: Abbrev Number: 4 (DW_TAG_pointer_type)
    <4c>   DW_AT_byte_size   : 4	
    <4d>   DW_AT_type        : <0x45>	
 <1><51>: Abbrev Number: 5 (DW_TAG_variable)
    <52>   DW_AT_name        : _D4test6foobarPFZv	
    <65>   DW_AT_type        : <0x4b>	
    <69>   DW_AT_external    : 1	
    <6a>   DW_AT_location    : 5 byte block: 3 78 94 4 8 	(DW_OP_addr: 8049478)
 <1><70>: Abbrev Number: 6 (DW_TAG_subprogram)
    <71>   DW_AT_name        : test._Dmodule_ref	
    <83>   DW_AT_MIPS_linkage_name: _Dmodule_ref	
    <90>   DW_AT_decl_file   : 1	
    <91>   DW_AT_decl_line   : 2	
    <93>   DW_AT_external    : 1	
    <94>   DW_AT_low_pc      : 0x8048394	
    <98>   DW_AT_high_pc     : 0x8048399	
    <9c>   DW_AT_frame_base  : 0x0	(location list)
 <1><a0>: Abbrev Number: 7 (DW_TAG_base_type)
    <a1>   DW_AT_name        : int	
    <a5>   DW_AT_byte_size   : 4	
    <a6>   DW_AT_encoding    : 5	(signed)
 <1><a7>: Abbrev Number: 7 (DW_TAG_base_type)
    <a8>   DW_AT_name        : char	
    <ad>   DW_AT_byte_size   : 1	
    <ae>   DW_AT_encoding    : 8	(unsigned char)
 <1><af>: Abbrev Number: 4 (DW_TAG_pointer_type)
    <b0>   DW_AT_byte_size   : 4	
    <b1>   DW_AT_type        : <0xa7>	
 <1><b5>: Abbrev Number: 4 (DW_TAG_pointer_type)
    <b6>   DW_AT_byte_size   : 4	
    <b7>   DW_AT_type        : <0xaf>	
 <1><bb>: Abbrev Number: 9 (DW_TAG_subprogram)
    <bc>   DW_AT_sibling     : <0xfe>	
    <c0>   DW_AT_name        : test.main	
    <ca>   DW_AT_MIPS_linkage_name: main	
    <cf>   DW_AT_decl_file   : 1	
    <d0>   DW_AT_decl_line   : 3	
    <d2>   DW_AT_type        : <0xa0>	
    <d6>   DW_AT_external    : 1	
    <d7>   DW_AT_low_pc      : 0x804839c	
    <db>   DW_AT_high_pc     : 0x80483a3	
    <df>   DW_AT_frame_base  : 0x2c	(location list)
 <2><e3>: Abbrev Number: 8 (DW_TAG_formal_parameter)
    <e4>   DW_AT_name        : argc	
    <e9>   DW_AT_type        : <0xa0>	
    <ed>   DW_AT_location    : 2 byte block: 91 8 	(DW_OP_fbreg: 8)
 <2><f0>: Abbrev Number: 8 (DW_TAG_formal_parameter)
    <f1>   DW_AT_name        : argv	
    <f6>   DW_AT_type        : <0xb5>	
    <fa>   DW_AT_location    : 2 byte block: 91 c 	(DW_OP_fbreg: 12)
 <1><fe>: Abbrev Number: 6 (DW_TAG_subprogram)
    <ff>   DW_AT_name        : D main	
    <106>   DW_AT_MIPS_linkage_name: _Dmain	
    <10d>   DW_AT_decl_file   : 1	
    <10e>   DW_AT_decl_line   : 8	
    <110>   DW_AT_external    : 1	
    <111>   DW_AT_low_pc      : 0x80483a4	
    <115>   DW_AT_high_pc     : 0x80483ab	
    <119>   DW_AT_frame_base  : 0x58	(location list)

Contents of the .debug_abbrev section:

  Number TAG
   1      DW_TAG_compile_unit    [has children]
    DW_AT_producer     DW_FORM_string
    DW_AT_language     DW_FORM_data1
    DW_AT_name         DW_FORM_string
    DW_AT_comp_dir     DW_FORM_string
    DW_AT_low_pc       DW_FORM_addr
    DW_AT_entry_pc     DW_FORM_addr
    DW_AT_ranges       DW_FORM_data4
    DW_AT_stmt_list    DW_FORM_data4
   2      DW_TAG_module    [no children]
    DW_AT_name         DW_FORM_string
   3      DW_TAG_subroutine_type    [no children]
    DW_AT_prototyped   DW_FORM_flag
    DW_AT_type         DW_FORM_ref4
   4      DW_TAG_pointer_type    [no children]
    DW_AT_byte_size    DW_FORM_data1
    DW_AT_type         DW_FORM_ref4
   5      DW_TAG_variable    [no children]
    DW_AT_name         DW_FORM_string
    DW_AT_type         DW_FORM_ref4
    DW_AT_external     DW_FORM_flag
    DW_AT_location     DW_FORM_block1
   6      DW_TAG_subprogram    [no children]
    DW_AT_name         DW_FORM_string
    DW_AT_MIPS_linkage_name DW_FORM_string
    DW_AT_decl_file    DW_FORM_data1
    DW_AT_decl_line    DW_FORM_data2
    DW_AT_external     DW_FORM_flag
    DW_AT_low_pc       DW_FORM_addr
    DW_AT_high_pc      DW_FORM_addr
    DW_AT_frame_base   DW_FORM_data4
   7      DW_TAG_base_type    [no children]
    DW_AT_name         DW_FORM_string
    DW_AT_byte_size    DW_FORM_data1
    DW_AT_encoding     DW_FORM_data1
   8      DW_TAG_formal_parameter    [no children]
    DW_AT_name         DW_FORM_string
    DW_AT_type         DW_FORM_ref4
    DW_AT_location     DW_FORM_block1
   9      DW_TAG_subprogram    [has children]
    DW_AT_sibling      DW_FORM_ref4
    DW_AT_name         DW_FORM_string
    DW_AT_MIPS_linkage_name DW_FORM_string
    DW_AT_decl_file    DW_FORM_data1
    DW_AT_decl_line    DW_FORM_data2
    DW_AT_type         DW_FORM_ref4
    DW_AT_external     DW_FORM_flag
    DW_AT_low_pc       DW_FORM_addr
    DW_AT_high_pc      DW_FORM_addr
    DW_AT_frame_base   DW_FORM_data4

Raw dump of debug contents of section .debug_line:

  Offset:                      0x0
  Length:                      75
  DWARF Version:               2
  Prologue Length:             26
  Minimum Instruction Length:  1
  Initial value of 'is_stmt':  1
  Line Base:                   -5
  Line Range:                  14
  Opcode Base:                 10

 Opcodes:
  Opcode 1 has 0 args
  Opcode 2 has 1 args
  Opcode 3 has 1 args
  Opcode 4 has 1 args
  Opcode 5 has 1 args
  Opcode 6 has 0 args
  Opcode 7 has 0 args
  Opcode 8 has 0 args
  Opcode 9 has 1 args

 The Directory Table is empty.

 The File Name Table:
  Entry	Dir	Time	Size	Name
  1	0	0	0	test.d

 Line Number Statements:
  Extended opcode 2: set Address to 0x8048394
  Set File Name to entry 1 in the File Name Table
  Special opcode 6: advance Address by 0 to 0x8048394 and Line by 1 to 2
  Special opcode 47: advance Address by 3 to 0x8048397 and Line by 0 to 2
  Extended opcode 1: End of Sequence

  Extended opcode 2: set Address to 0x804839c
  Set File Name to entry 1 in the File Name Table
  Special opcode 7: advance Address by 0 to 0x804839c and Line by 2 to 3
  Special opcode 49: advance Address by 3 to 0x804839f and Line by 2 to 5
  Special opcode 34: advance Address by 2 to 0x80483a1 and Line by 1 to 6
  Extended opcode 1: End of Sequence

  Extended opcode 2: set Address to 0x80483a4
  Set File Name to entry 1 in the File Name Table
  Special opcode 12: advance Address by 0 to 0x80483a4 and Line by 7 to 8
  Special opcode 75: advance Address by 5 to 0x80483a9 and Line by 0 to 8
  Extended opcode 1: End of Sequence


Contents of the .debug_frame section:

00000000 00000010 ffffffff CIE
  Version:               1
  Augmentation:          ""
  Code alignment factor: 1
  Data alignment factor: -4
  Return address column: 8

  DW_CFA_def_cfa: r4 (esp) ofs 4
  DW_CFA_offset: r8 (eip) at cfa-4
  DW_CFA_nop
  DW_CFA_nop

00000014 00000014 00000000 FDE cie=00000000 pc=08048394..08048399
  DW_CFA_advance_loc: 1 to 08048395
  DW_CFA_def_cfa_offset: 8
  DW_CFA_offset: r5 (ebp) at cfa-8
  DW_CFA_advance_loc: 2 to 08048397
  DW_CFA_def_cfa_register: r5 (ebp)

0000002c 00000014 00000000 FDE cie=00000000 pc=0804839c..080483a3
  DW_CFA_advance_loc: 1 to 0804839d
  DW_CFA_def_cfa_offset: 8
  DW_CFA_offset: r5 (ebp) at cfa-8
  DW_CFA_advance_loc: 2 to 0804839f
  DW_CFA_def_cfa_register: r5 (ebp)

00000044 00000014 00000000 FDE cie=00000000 pc=080483a4..080483ab
  DW_CFA_advance_loc: 1 to 080483a5
  DW_CFA_def_cfa_offset: 8
  DW_CFA_offset: r5 (ebp) at cfa-8
  DW_CFA_advance_loc: 2 to 080483a7
  DW_CFA_def_cfa_register: r5 (ebp)

Contents of the .debug_loc section:

    Offset   Begin    End      Expression
    00000000 08048394 08048395 (DW_OP_breg4: 4)
    00000000 08048395 08048397 (DW_OP_breg4: 8)
    00000000 08048397 08048399 (DW_OP_breg5: 0)
    00000000 <End of list>
    0000002c 0804839c 0804839d (DW_OP_breg4: 4)
    0000002c 0804839d 0804839f (DW_OP_breg4: 8)
    0000002c 0804839f 080483a3 (DW_OP_breg5: 0)
    0000002c <End of list>
    00000058 080483a4 080483a5 (DW_OP_breg4: 4)
    00000058 080483a5 080483a7 (DW_OP_breg4: 8)
    00000058 080483a7 080483ab (DW_OP_breg5: 0)
    00000058 <End of list>

Contents of the .debug_ranges section:

    Offset   Begin    End
    00000000 08048394 08048399 
    00000000 0804839c 080483a3 
    00000000 080483a4 080483ab 
    00000000 <End of list>

