OLD | NEW |
1 /* This testcase is part of GDB, the GNU debugger. | 1 /* This testcase is part of GDB, the GNU debugger. |
2 | 2 |
3 Copyright 2011-2012 Free Software Foundation, Inc. | 3 Copyright 2012 Free Software Foundation, Inc. |
4 | 4 |
5 This program is free software; you can redistribute it and/or modify | 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 | 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 | 7 the Free Software Foundation; either version 3 of the License, or |
8 (at your option) any later version. | 8 (at your option) any later version. |
9 | 9 |
10 This program is distributed in the hope that it will be useful, | 10 This program is distributed in the hope that it will be useful, |
11 but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 GNU General Public License for more details. | 13 GNU General Public License for more details. |
14 | 14 |
15 You should have received a copy of the GNU General Public License | 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/>. */ | 16 along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
17 | 17 |
18 .data | 18 .data |
| 19 var: .4byte 1 |
19 | 20 |
20 .section .debug_info | 21 .section .debug_info |
21 .Lcu1_begin: | 22 .Lcu1_begin: |
22 /* CU header */ | 23 /* CU header */ |
23 .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ | 24 .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ |
24 .Lcu1_start: | 25 .Lcu1_start: |
25 .2byte 2 /* DWARF Version */ | 26 .2byte 2 /* DWARF Version */ |
26 .4byte .Labbrev1_begin /* Offset into abbrev section */ | 27 .4byte .Labbrev1_begin /* Offset into abbrev section */ |
27 .byte 4 /* Pointer size */ | 28 .byte 4 /* Pointer size */ |
28 | 29 |
29 /* CU die */ | 30 /* CU die */ |
30 .uleb128 1 /* Abbrev: DW_TAG_compile_unit *
/ | 31 .uleb128 1 /* Abbrev: DW_TAG_compile_unit *
/ |
31 » .ascii» "dw2-var-zero-addr.c\0"»» /* DW_AT_name */ | 32 » .ascii» "file1.txt\0"» » » /* DW_AT_name */ |
32 » .ascii» "GNU C 4.3.2\0"»» » /* DW_AT_producer */ | 33 » .ascii» "GNU C 3.3.3\0"»» » /* DW_AT_producer */ |
33 » .byte» 1» » » » /* DW_AT_language (C) */ | 34 » .byte» 4» » » » /* DW_LANG_C_plus_plus (C++) */ |
34 | 35 |
35 .Ltype_uchar: | 36 .Ltype_myint: |
36 .uleb128 2 /* Abbrev: DW_TAG_base_type */ | 37 .uleb128 2 /* Abbrev: DW_TAG_base_type */ |
37 » .ascii» » "int\0"»» » /* DW_AT_name */ | 38 » .ascii» » "myint\0"» » » /* DW_AT_name */ |
38 .byte 4 /* DW_AT_byte_size */ | 39 .byte 4 /* DW_AT_byte_size */ |
39 .byte 5 /* DW_AT_encoding */ | 40 .byte 5 /* DW_AT_encoding */ |
40 | 41 |
41 » .uleb128» 3» » » /* Abbrev: DW_TAG_variable (loca
tion) */ | 42 » .uleb128» 7» » » /* Abbrev: DW_TAG_variable (loca
tion) */ |
42 » .ascii» » "var\0"»» » /* DW_AT_name */ | 43 » .ascii» » "_ZN12_GLOBAL__N_11vE\0" /* DW_AT_name = "(anonymous nam
espace)::v" */ |
43 .byte 2f - 1f /* DW_AT_location */ | 44 .byte 2f - 1f /* DW_AT_location */ |
44 1: .byte 3 /* DW_OP_addr */ | 45 1: .byte 3 /* DW_OP_addr */ |
45 » .4byte» » 0» » » /* <addr> */ | 46 » .4byte» » var» » » /* <addr> */ |
46 2:» .4byte» » .Ltype_uchar-.Lcu1_begin» /* DW_AT_type */ | 47 2:» .4byte» » .Ltype_myint-.Lcu1_begin /* DW_AT_type */ |
47 | 48 |
48 .byte 0 /* End of children of CU */ | 49 .byte 0 /* End of children of CU */ |
49 | 50 |
50 .Lcu1_end: | 51 .Lcu1_end: |
51 | 52 |
52 /* Abbrev table */ | 53 /* Abbrev table */ |
53 .section .debug_abbrev | 54 .section .debug_abbrev |
54 .Labbrev1_begin: | 55 .Labbrev1_begin: |
55 .uleb128 1 /* Abbrev code */ | 56 .uleb128 1 /* Abbrev code */ |
56 .uleb128 0x11 /* DW_TAG_compile_unit */ | 57 .uleb128 0x11 /* DW_TAG_compile_unit */ |
(...skipping 12 matching lines...) Expand all Loading... |
69 .byte 0 /* has_children */ | 70 .byte 0 /* has_children */ |
70 .uleb128 0x3 /* DW_AT_name */ | 71 .uleb128 0x3 /* DW_AT_name */ |
71 .uleb128 0x8 /* DW_FORM_string */ | 72 .uleb128 0x8 /* DW_FORM_string */ |
72 .uleb128 0xb /* DW_AT_byte_size */ | 73 .uleb128 0xb /* DW_AT_byte_size */ |
73 .uleb128 0xb /* DW_FORM_data1 */ | 74 .uleb128 0xb /* DW_FORM_data1 */ |
74 .uleb128 0x3e /* DW_AT_encoding */ | 75 .uleb128 0x3e /* DW_AT_encoding */ |
75 .uleb128 0xb /* DW_FORM_data1 */ | 76 .uleb128 0xb /* DW_FORM_data1 */ |
76 .byte 0x0 /* Terminator */ | 77 .byte 0x0 /* Terminator */ |
77 .byte 0x0 /* Terminator */ | 78 .byte 0x0 /* Terminator */ |
78 | 79 |
79 » .uleb128» 3» » » /* Abbrev code (location) */ | 80 » .uleb128» 7» » » /* Abbrev code (location) */ |
80 .uleb128 0x34 /* DW_TAG_variable */ | 81 .uleb128 0x34 /* DW_TAG_variable */ |
81 .byte 0 /* has_children */ | 82 .byte 0 /* has_children */ |
82 .uleb128 0x3 /* DW_AT_name */ | 83 .uleb128 0x3 /* DW_AT_name */ |
83 .uleb128 0x8 /* DW_FORM_string */ | 84 .uleb128 0x8 /* DW_FORM_string */ |
84 .uleb128 0x2 /* DW_AT_location */ | 85 .uleb128 0x2 /* DW_AT_location */ |
85 .uleb128 0xa /* DW_FORM_block1 */ | 86 .uleb128 0xa /* DW_FORM_block1 */ |
86 .uleb128 0x49 /* DW_AT_type */ | 87 .uleb128 0x49 /* DW_AT_type */ |
87 .uleb128 0x13 /* DW_FORM_ref4 */ | 88 .uleb128 0x13 /* DW_FORM_ref4 */ |
88 .byte 0x0 /* Terminator */ | 89 .byte 0x0 /* Terminator */ |
89 .byte 0x0 /* Terminator */ | 90 .byte 0x0 /* Terminator */ |
90 | 91 |
91 .byte 0x0 /* Terminator */ | 92 .byte 0x0 /* Terminator */ |
92 .byte 0x0 /* Terminator */ | 93 .byte 0x0 /* Terminator */ |
OLD | NEW |