]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/testsuite/gdb.dwarf2/dw2-op-stack-value.S
Update year range in copyright notice of all files owned by the GDB project.
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.dwarf2 / dw2-op-stack-value.S
1 /* This testcase is part of GDB, the GNU debugger.
2
3 Copyright 2011-2015 Free Software Foundation, Inc.
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 .section .data
19 aa551234: .byte 0xaa, 0x55, 0x12, 0x34
20
21 .section .debug_info
22 .Lcu1_begin:
23 /* CU header */
24 .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */
25 .Lcu1_start:
26 .2byte 2 /* DWARF Version */
27 .4byte .Labbrev1_begin /* Offset into abbrev section */
28 .byte 4 /* Pointer size */
29
30 /* CU die */
31 .uleb128 1 /* Abbrev: DW_TAG_compile_unit */
32 .ascii "file1.txt\0" /* DW_AT_name */
33 .ascii "GNU C 3.3.3\0" /* DW_AT_producer */
34 .byte 2 /* DW_LANG_C (C) */
35
36 .L2byte_type:
37 .uleb128 2 /* Abbrev: DW_TAG_base_type */
38 .ascii "2byte\0" /* DW_AT_name */
39 .byte 2 /* DW_AT_byte_size */
40 .byte 7 /* DW_AT_encoding: DW_ATE_unsigned */
41
42 .L4byte_type:
43 .uleb128 2 /* Abbrev: DW_TAG_base_type */
44 .ascii "4byte\0" /* DW_AT_name */
45 .byte 4 /* DW_AT_byte_size */
46 .byte 7 /* DW_AT_encoding: DW_ATE_unsigned */
47
48 .L8byte_type:
49 .uleb128 2 /* Abbrev: DW_TAG_base_type */
50 .ascii "8byte\0" /* DW_AT_name */
51 .byte 4 /* DW_AT_byte_size */
52 .byte 7 /* DW_AT_encoding: DW_ATE_unsigned */
53
54 .uleb128 3 /* Abbrev: DW_TAG_variable */
55 .ascii "stack2\0" /* DW_AT_name */
56 .4byte .L2byte_type-.Lcu1_begin /* DW_AT_type */
57 .byte 2f - 1f /* DW_AT_location */
58 1: .byte 0x31 /* DW_OP_lit1 */
59 .byte 0x9f /* DW_OP_stack_value */
60 2:
61
62 .uleb128 3 /* Abbrev: DW_TAG_variable */
63 .ascii "stack8\0" /* DW_AT_name */
64 .4byte .L8byte_type-.Lcu1_begin /* DW_AT_type */
65 .byte 2f - 1f /* DW_AT_location */
66 1: .byte 0x31 /* DW_OP_lit1 */
67 .byte 0x9f /* DW_OP_stack_value */
68 2:
69
70 .uleb128 3 /* Abbrev: DW_TAG_variable */
71 .ascii "implicit4to2\0" /* DW_AT_name */
72 .4byte .L2byte_type-.Lcu1_begin /* DW_AT_type */
73 .byte 3f - 1f /* DW_AT_location */
74 1: .byte 0x9e /* DW_OP_implicit_value */
75 .uleb128 3f - 2f
76 2: .byte 0x11, 0x22, 0x33, 0x44
77 3:
78
79 .uleb128 3 /* Abbrev: DW_TAG_variable */
80 .ascii "implicit4to4\0" /* DW_AT_name */
81 .4byte .L4byte_type-.Lcu1_begin /* DW_AT_type */
82 .byte 3f - 1f /* DW_AT_location */
83 1: .byte 0x9e /* DW_OP_implicit_value */
84 .uleb128 3f - 2f
85 2: .byte 0x11, 0x22, 0x33, 0x44
86 3:
87
88 .byte 0 /* End of children of CU */
89
90 .Lcu1_end:
91
92 /* Abbrev table */
93 .section .debug_abbrev
94 .Labbrev1_begin:
95 .uleb128 1 /* Abbrev code */
96 .uleb128 0x11 /* DW_TAG_compile_unit */
97 .byte 1 /* has_children */
98 .uleb128 0x3 /* DW_AT_name */
99 .uleb128 0x8 /* DW_FORM_string */
100 .uleb128 0x25 /* DW_AT_producer */
101 .uleb128 0x8 /* DW_FORM_string */
102 .uleb128 0x13 /* DW_AT_language */
103 .uleb128 0xb /* DW_FORM_data1 */
104 .byte 0x0 /* Terminator */
105 .byte 0x0 /* Terminator */
106
107 .uleb128 2 /* Abbrev code */
108 .uleb128 0x24 /* DW_TAG_base_type */
109 .byte 0 /* has_children */
110 .uleb128 0x3 /* DW_AT_name */
111 .uleb128 0x8 /* DW_FORM_string */
112 .uleb128 0xb /* DW_AT_byte_size */
113 .uleb128 0xb /* DW_FORM_data1 */
114 .uleb128 0x3e /* DW_AT_encoding */
115 .uleb128 0xb /* DW_FORM_data1 */
116 .byte 0x0 /* Terminator */
117 .byte 0x0 /* Terminator */
118
119 .uleb128 3 /* Abbrev code */
120 .uleb128 0x34 /* DW_TAG_variable */
121 .byte 0 /* has_children */
122 .uleb128 0x3 /* DW_AT_name */
123 .uleb128 0x8 /* DW_FORM_string */
124 .uleb128 0x49 /* DW_AT_type */
125 .uleb128 0x13 /* DW_FORM_ref4 */
126 .uleb128 0x2 /* DW_AT_location */
127 .uleb128 0xa /* DW_FORM_block1 */
128 .byte 0x0 /* Terminator */
129 .byte 0x0 /* Terminator */
130
131 .byte 0x0 /* Terminator */
132 .byte 0x0 /* Terminator */