a1602a5f6b048fb75a608206f5b643000cfe9b96
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.dwarf2 / dw2-strp.S
1 /* This testcase is part of GDB, the GNU debugger.
2
3 Copyright 2008, 2009 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 /* Debug information */
19
20 .section .debug_info
21 .Lcu1_begin:
22 .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */
23 .Lcu1_start:
24 .2byte 2 /* DWARF version number */
25 .4byte .Ldebug_abbrev0 /* Offset Into Abbrev. Section */
26 .byte 4 /* Pointer Size (in bytes) */
27
28 /* CU die */
29 .uleb128 1 /* Abbrev: DW_TAG_compile_unit */
30 .4byte .Lproducer /* DW_AT_producer */
31 .byte 1 /* DW_AT_language (C) */
32
33 .Larray_type:
34 .uleb128 2 /* Abbrev: DW_TAG_array_type */
35 .4byte .Lchar_type-.Lcu1_begin /* DW_AT_type */
36
37 .uleb128 3 /* Abbrev: DW_TAG_subrange_type */
38 .4byte .Luint_type-.Lcu1_begin /* DW_AT_type */
39 .byte 0xd /* DW_AT_upper_bound */
40 .byte 0 /* End of children of die */
41
42 .Luint_type:
43 .uleb128 4 /* Abbrev: DW_TAG_base_type */
44 .4byte .Luint_str /* DW_AT_name */
45 .byte 4 /* DW_AT_byte_size */
46 .byte 7 /* DW_AT_encoding */
47
48 .Lchar_type:
49 .uleb128 4 /* Abbrev: DW_TAG_base_type */
50 .4byte .Lchar_str /* DW_AT_name */
51 .byte 1 /* DW_AT_byte_size */
52 .byte 6 /* DW_AT_encoding */
53
54 .uleb128 5 /* Abbrev: DW_TAG_variable */
55 .4byte .Lvarname /* DW_AT_name */
56 .4byte .Lconst_type-.Lcu1_begin/* DW_AT_type */
57 .4byte .Lvarcontents /* DW_AT_const_value */
58 .byte 1 /* DW_AT_external */
59
60 .Lconst_type:
61 .uleb128 6 /* Abbrev: DW_TAG_const_type */
62 .4byte .Larray_type-.Lcu1_begin/* DW_AT_type */
63 .byte 0 /* End of children of CU */
64 .Lcu1_end:
65
66 .section .debug_abbrev
67 .Ldebug_abbrev0:
68 .uleb128 1 /* Abbrev code */
69 .uleb128 0x11 /* DW_TAG_compile_unit */
70 .byte 0x1 /* has_children */
71 .uleb128 0x25 /* DW_AT_producer */
72 .uleb128 0xe /* DW_FORM_strp */
73 .uleb128 0x13 /* DW_AT_language */
74 .uleb128 0xb /* DW_FORM_data1 */
75 .byte 0x0 /* Terminator */
76 .byte 0x0 /* Terminator */
77
78 .uleb128 2 /* Abbrev code */
79 .uleb128 0x1 /* TAG: DW_TAG_array_type */
80 .byte 0x1 /* DW_children_yes */
81 .uleb128 0x49 /* DW_AT_type */
82 .uleb128 0x13 /* DW_FORM_ref4 */
83 .byte 0x0 /* Terminator */
84 .byte 0x0 /* Terminator */
85
86 .uleb128 3 /* Abbrev code */
87 .uleb128 0x21 /* DW_TAG_subrange_type */
88 .byte 0x0 /* no children */
89 .uleb128 0x49 /* DW_AT_type */
90 .uleb128 0x13 /* DW_FORM_ref4 */
91 .uleb128 0x2f /* DW_AT_upper_bound */
92 .uleb128 0xb /* DW_FORM_data1 */
93 .byte 0x0 /* Terminator */
94 .byte 0x0 /* Terminator */
95
96 .uleb128 4 /* Abbrev code */
97 .uleb128 0x24 /* DW_TAG_base_type */
98 .byte 0x0 /* no_children */
99 .uleb128 0x3 /* DW_AT_name */
100 .uleb128 0xe /* DW_FORM_strp */
101 .uleb128 0xb /* DW_AT_byte_size */
102 .uleb128 0xb /* DW_FORM_data1 */
103 .uleb128 0x3e /* DW_AT_encoding */
104 .uleb128 0xb /* DW_FORM_data1 */
105 .byte 0x0 /* Terminator */
106 .byte 0x0 /* Terminator */
107
108 .uleb128 5 /* Abbrev code */
109 .uleb128 0x34 /* DW_TAG_variable */
110 .byte 0x0 /* no_children */
111 .uleb128 0x3 /* DW_AT_name */
112 .uleb128 0xe /* DW_FORM_strp */
113 .uleb128 0x49 /* DW_AT_type */
114 .uleb128 0x13 /* DW_FORM_ref4 */
115 .uleb128 0x1c /* DW_AT_const_value */
116 .uleb128 0xe /* DW_FORM_strp */
117 .uleb128 0x3f /* DW_AT_external */
118 .uleb128 0xc /* DW_FORM_flag */
119 .byte 0x0 /* Terminator */
120 .byte 0x0 /* Terminator */
121
122 .uleb128 6 /* Abbrev code */
123 .uleb128 0x26 /* DW_TAG_const_type */
124 .byte 0x0 /* DW_children_no */
125 .uleb128 0x49 /* DW_AT_type */
126 .uleb128 0x13 /* DW_FORM_ref4 */
127 .byte 0x0 /* Terminator */
128 .byte 0x0 /* Terminator */
129 .byte 0x0 /* Terminator */
130
131 /* String table */
132 .section .debug_str
133 .Lproducer:
134 .string "GNU C 3.3.3"
135 .Lchar_str:
136 .string "char"
137 .Luint_str:
138 .string "unsigned int"
139 .Lvarname:
140 .string "a_string"
141 .Lvarcontents:
142 .string "hello world!\n"
This page took 0.032265 seconds and 3 git commands to generate.