Don't generate .debug_line section if it isn't empty.
[external/binutils.git] / gas / testsuite / gas / elf / dwarf2-2.d
1 #readelf: -w
2 #name: DWARF2 2
3 #not-target: ia64-*-*
4
5 Contents of the .debug_info section:
6
7   Compilation Unit @ offset 0x0:
8    Length:        0x4e \(32-bit\)
9    Version:       2
10    Abbrev Offset: 0
11    Pointer Size:  4
12  <0><b>: Abbrev Number: 1 \(DW_TAG_compile_unit\)
13     < c>   DW_AT_stmt_list   : 0x0      
14     <10>   DW_AT_high_pc     : 0x.      
15     <14>   DW_AT_low_pc      : 0x.      
16     <18>   DW_AT_name        : file1.txt        
17     <22>   DW_AT_producer    : GNU C 3.3.3      
18     <2e>   DW_AT_language    : 1        \(ANSI C\)
19  <1><2f>: Abbrev Number: 2 \(DW_TAG_subprogram\)
20     <30>   DW_AT_external    : 1        
21     <31>   DW_AT_decl_file   : 1        
22     <32>   DW_AT_decl_line   : 2        
23     <33>   DW_AT_name        : func_cu1 
24     <3c>   DW_AT_type        : <0x4a>   
25     <40>   DW_AT_low_pc      : 0x.      
26     <44>   DW_AT_high_pc     : 0x.      
27     <48>   DW_AT_frame_base  : 1 byte block: 55         \(DW_OP_reg5\)
28  <1><4a>: Abbrev Number: 3 \(DW_TAG_base_type\)
29     <4b>   DW_AT_name        : int      
30     <4f>   DW_AT_byte_size   : 4        
31     <50>   DW_AT_encoding    : 5        \(signed\)
32
33 Raw dump of debug contents of section .debug_line:
34
35   Offset:                      0x0
36   Length:                      62
37   DWARF Version:               2
38   Prologue Length:             35
39   Minimum Instruction Length:  1
40   Initial value of 'is_stmt':  1
41   Line Base:                   1
42   Line Range:                  1
43   Opcode Base:                 16
44
45  Opcodes:
46   Opcode 1 has 0 args
47   Opcode 2 has 1 args
48   Opcode 3 has 1 args
49   Opcode 4 has 1 args
50   Opcode 5 has 1 args
51   Opcode 6 has 0 args
52   Opcode 7 has 0 args
53   Opcode 8 has 0 args
54   Opcode 9 has 1 args
55   Opcode 10 has 0 args
56   Opcode 11 has 0 args
57   Opcode 12 has 1 args
58   Opcode 13 has 0 args
59   Opcode 14 has 0 args
60   Opcode 15 has 0 args
61
62  The Directory Table is empty.
63
64  The File Name Table:
65   Entry Dir     Time    Size    Name
66   1     0       0       0       file1.txt
67
68  Line Number Statements:
69   Extended opcode 2: set Address to .*
70   Advance Line by 3 to 4
71   Copy
72   Copy
73   Extended opcode 2: set Address to .*
74   Extended opcode 1: End of Sequence
75
76
77 Contents of the .zdebug_abbrev section:
78
79   Number TAG
80    1      DW_TAG_compile_unit    \[has children\]
81     DW_AT_stmt_list    DW_FORM_data4
82     DW_AT_high_pc      DW_FORM_addr
83     DW_AT_low_pc       DW_FORM_addr
84     DW_AT_name         DW_FORM_string
85     DW_AT_producer     DW_FORM_string
86     DW_AT_language     DW_FORM_data1
87    2      DW_TAG_subprogram    \[no children\]
88     DW_AT_external     DW_FORM_flag
89     DW_AT_decl_file    DW_FORM_data1
90     DW_AT_decl_line    DW_FORM_data1
91     DW_AT_name         DW_FORM_string
92     DW_AT_type         DW_FORM_ref4
93     DW_AT_low_pc       DW_FORM_addr
94     DW_AT_high_pc      DW_FORM_addr
95     DW_AT_frame_base   DW_FORM_block1
96    3      DW_TAG_base_type    \[no children\]
97     DW_AT_name         DW_FORM_string
98     DW_AT_byte_size    DW_FORM_data1
99     DW_AT_encoding     DW_FORM_data1
100