Commit | Line | Data |
---|---|---|
2af7517b JK |
1 | /* This testcase is part of GDB, the GNU debugger. |
2 | ||
32d0add0 | 3 | Copyright 2012-2015 Free Software Foundation, Inc. |
2af7517b JK |
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 | .data | |
19 | var: .4byte 1 | |
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 4 /* DW_LANG_C_plus_plus (C++) */ | |
35 | ||
36 | .Ltype_myint: | |
37 | .uleb128 2 /* Abbrev: DW_TAG_base_type */ | |
38 | .ascii "myint\0" /* DW_AT_name */ | |
39 | .byte 4 /* DW_AT_byte_size */ | |
40 | .byte 5 /* DW_AT_encoding */ | |
41 | ||
42 | .uleb128 7 /* Abbrev: DW_TAG_variable (location) */ | |
43 | .ascii "_ZN12_GLOBAL__N_11vE\0" /* DW_AT_name = "(anonymous namespace)::v" */ | |
44 | .byte 2f - 1f /* DW_AT_location */ | |
45 | 1: .byte 3 /* DW_OP_addr */ | |
46 | .4byte var /* <addr> */ | |
47 | 2: .4byte .Ltype_myint-.Lcu1_begin /* DW_AT_type */ | |
48 | ||
49 | .byte 0 /* End of children of CU */ | |
50 | ||
51 | .Lcu1_end: | |
52 | ||
53 | /* Abbrev table */ | |
54 | .section .debug_abbrev | |
55 | .Labbrev1_begin: | |
56 | .uleb128 1 /* Abbrev code */ | |
57 | .uleb128 0x11 /* DW_TAG_compile_unit */ | |
58 | .byte 1 /* has_children */ | |
59 | .uleb128 0x3 /* DW_AT_name */ | |
60 | .uleb128 0x8 /* DW_FORM_string */ | |
61 | .uleb128 0x25 /* DW_AT_producer */ | |
62 | .uleb128 0x8 /* DW_FORM_string */ | |
63 | .uleb128 0x13 /* DW_AT_language */ | |
64 | .uleb128 0xb /* DW_FORM_data1 */ | |
65 | .byte 0x0 /* Terminator */ | |
66 | .byte 0x0 /* Terminator */ | |
67 | ||
68 | .uleb128 2 /* Abbrev code */ | |
69 | .uleb128 0x24 /* DW_TAG_base_type */ | |
70 | .byte 0 /* has_children */ | |
71 | .uleb128 0x3 /* DW_AT_name */ | |
72 | .uleb128 0x8 /* DW_FORM_string */ | |
73 | .uleb128 0xb /* DW_AT_byte_size */ | |
74 | .uleb128 0xb /* DW_FORM_data1 */ | |
75 | .uleb128 0x3e /* DW_AT_encoding */ | |
76 | .uleb128 0xb /* DW_FORM_data1 */ | |
77 | .byte 0x0 /* Terminator */ | |
78 | .byte 0x0 /* Terminator */ | |
79 | ||
80 | .uleb128 7 /* Abbrev code (location) */ | |
81 | .uleb128 0x34 /* DW_TAG_variable */ | |
82 | .byte 0 /* has_children */ | |
83 | .uleb128 0x3 /* DW_AT_name */ | |
84 | .uleb128 0x8 /* DW_FORM_string */ | |
85 | .uleb128 0x2 /* DW_AT_location */ | |
86 | .uleb128 0xa /* DW_FORM_block1 */ | |
87 | .uleb128 0x49 /* DW_AT_type */ | |
88 | .uleb128 0x13 /* DW_FORM_ref4 */ | |
89 | .byte 0x0 /* Terminator */ | |
90 | .byte 0x0 /* Terminator */ | |
91 | ||
92 | .byte 0x0 /* Terminator */ | |
93 | .byte 0x0 /* Terminator */ |