Commit | Line | Data |
---|---|---|
ba8826a8 AO |
1 | /* Test view number decoding. |
2 | ||
82704155 | 3 | Copyright (C) 2017-2019 Free Software Foundation, Inc. |
ba8826a8 AO |
4 | |
5 | This program is free software; you can redistribute it and/or modify | |
6 | it under the terms of the GNU General Public License as published by | |
7 | the Free Software Foundation; either version 3 of the License, or | |
8 | (at your option) any later version. | |
9 | ||
10 | This program is distributed in the hope that it will be useful, | |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | GNU General Public License for more details. | |
14 | ||
15 | You should have received a copy of the GNU General Public License | |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ | |
17 | ||
18 | .file "dwarf2-6.c" | |
19 | .text | |
20 | .balign 4 | |
21 | .globl _start | |
22 | _start: | |
23 | .L_start: | |
24 | .org .+256 | |
25 | .Lend_start: | |
26 | ||
27 | .section .debug_line,"",%progbits | |
28 | .4byte .Lline_end - .Lline_start /* Initial length. */ | |
29 | .Lline_start: | |
30 | .2byte 2 /* Dwarf Version. */ | |
31 | .4byte .Lline_lines - .Lline_hdr | |
32 | .Lline_hdr: | |
33 | .byte 1 /* Minimum insn length. */ | |
34 | .byte 1 /* Default is_stmt. */ | |
35 | .byte 1 /* Line base. */ | |
36 | .byte 1 /* Line range. */ | |
37 | .byte 0x10 /* Opcode base. */ | |
38 | ||
39 | /* Standard lengths. */ | |
40 | .byte 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0 | |
41 | ||
42 | .byte 0 /* Include directories. */ | |
43 | ||
44 | /* File names. */ | |
45 | .ascii "dwarf2-6.c\0" | |
46 | .uleb128 0, 0, 0 | |
47 | ||
48 | .byte 0 | |
49 | ||
50 | .Lline_lines: | |
51 | .byte 0 /* DW_LNS_extended_op. */ | |
52 | .uleb128 5 | |
53 | .byte 2 /* DW_LNE_set_address. */ | |
54 | .4byte .L_start | |
55 | ||
56 | .byte 1 /* DW_LNS_copy view 0. */ | |
57 | ||
58 | .byte 1 /* DW_LNS_copy view 1. */ | |
59 | ||
60 | .byte 0 /* DW_LNS_extended_op. */ | |
61 | .uleb128 5 | |
62 | .byte 2 /* DW_LNE_set_address. */ | |
63 | .4byte .L_start+1 | |
64 | ||
65 | .byte 1 /* DW_LNS_copy view 0. */ | |
66 | ||
67 | .byte 2 /* DW_LNS_advance_pc by 0. */ | |
68 | .uleb128 0 | |
69 | ||
70 | .byte 1 /* DW_LNS_copy view 1. */ | |
71 | ||
72 | .byte 2 /* DW_LNS_advance_pc by 1 (reset view). */ | |
73 | .uleb128 1 | |
74 | ||
75 | .byte 1 /* DW_LNS_copy view 0. */ | |
76 | ||
77 | .byte 9 /* DW_LNS_fixed_advance_pc by 1. */ | |
78 | .2byte 1 /* This opcode does NOT reset view. */ | |
79 | ||
80 | .byte 1 /* DW_LNS_copy view 1. */ | |
81 | ||
82 | .byte 16 /* Special opcode 0, PC+=0, Line+=1, view 2. */ | |
83 | ||
84 | .byte 17 /* Special opcode 1, PC+=1 (reset view), Line+=1. */ | |
85 | ||
86 | .byte 1 /* DW_LNS_copy view 1. */ | |
87 | ||
88 | .byte 8 /* DW_LNS_const_add_pc by 239 (reset view). */ | |
89 | ||
90 | .byte 1 /* DW_LNS_copy view 0. */ | |
91 | ||
92 | .byte 0 /* DW_LNS_extended_op. */ | |
93 | .uleb128 5 | |
94 | .byte 2 /* DW_LNE_set_address. */ | |
95 | .4byte .Lend_start | |
96 | ||
97 | .byte 0 /* DW_LNS_extended_op. */ | |
98 | .uleb128 1 | |
99 | .byte 1 /* DW_LEN_end_of_sequence. */ | |
100 | ||
101 | .Lline_end: |