OLD | NEW |
1 /* Copyright 2012 Free Software Foundation, Inc. | 1 /* Copyright 2012-2013 Free Software Foundation, Inc. |
2 | 2 |
3 This program is free software; you can redistribute it and/or modify | 3 This program is free software; you can redistribute it and/or modify |
4 it under the terms of the GNU General Public License as published by | 4 it under the terms of the GNU General Public License as published by |
5 the Free Software Foundation; either version 3 of the License, or | 5 the Free Software Foundation; either version 3 of the License, or |
6 (at your option) any later version. | 6 (at your option) any later version. |
7 | 7 |
8 This program is distributed in the hope that it will be useful, | 8 This program is distributed in the hope that it will be useful, |
9 but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 GNU General Public License for more details. | 11 GNU General Public License for more details. |
(...skipping 24 matching lines...) Expand all Loading... |
36 entries to trigger the desired code path. | 36 entries to trigger the desired code path. |
37 There's no real need to make this architecture-specific, so it has been | 37 There's no real need to make this architecture-specific, so it has been |
38 further hand-edited to support that. | 38 further hand-edited to support that. |
39 */ | 39 */ |
40 | 40 |
41 .file "fission-reread.cc" | 41 .file "fission-reread.cc" |
42 | 42 |
43 .globl baz | 43 .globl baz |
44 .data /* Previously this used .bss, but it's not portable. */ | 44 .data /* Previously this used .bss, but it's not portable. */ |
45 .align 4 | 45 .align 4 |
46 » .type» baz, @object | 46 » .type» baz, %object |
47 .size baz, 4 | 47 .size baz, 4 |
48 baz: | 48 baz: |
49 .zero 4 | 49 .zero 4 |
50 | 50 |
51 .text | 51 .text |
52 .Ltext0: | 52 .Ltext0: |
53 .globl main | 53 .globl main |
54 » .type» main, @function | 54 » .type» main, %function |
55 main: | 55 main: |
56 .LFB0: | 56 .LFB0: |
57 .file 1 "fission-reread.cc" | 57 .file 1 "fission-reread.cc" |
58 .loc 1 11 0 | 58 .loc 1 11 0 |
59 .4byte 0 | 59 .4byte 0 |
60 .LFE0: | 60 .LFE0: |
61 .size main, .-main | 61 .size main, .-main |
62 .Letext0: | 62 .Letext0: |
63 | 63 |
64 .section .debug_types.dwo | 64 .section .debug_types.dwo |
(...skipping 28 matching lines...) Expand all Loading... |
93 .uleb128 0x8 /* DW_TAG_class_type */ | 93 .uleb128 0x8 /* DW_TAG_class_type */ |
94 .4byte .Ltu_class_type - .Ltu_start_dwo | 94 .4byte .Ltu_class_type - .Ltu_start_dwo |
95 /* End of manual insertion */ | 95 /* End of manual insertion */ |
96 | 96 |
97 .Ltu_class_type: | 97 .Ltu_class_type: |
98 .uleb128 0x2 /* (DIE (0x25) DW_TAG_class_type) */ | 98 .uleb128 0x2 /* (DIE (0x25) DW_TAG_class_type) */ |
99 .ascii "foo\0" /* DW_AT_name */ | 99 .ascii "foo\0" /* DW_AT_name */ |
100 .byte 0x4 /* DW_AT_byte_size */ | 100 .byte 0x4 /* DW_AT_byte_size */ |
101 .byte 0x1 /* DW_AT_decl_file (fission-reread.cc) */ | 101 .byte 0x1 /* DW_AT_decl_file (fission-reread.cc) */ |
102 .byte 0x1 /* DW_AT_decl_line */ | 102 .byte 0x1 /* DW_AT_decl_line */ |
103 » .4byte» .Ltu_int» /* DW_AT_sibling */ | 103 » .4byte» .Ltu_int - .Ltu_start_dwo /* DW_AT_sibling */ |
104 .uleb128 0x3 /* (DIE (0x31) DW_TAG_member) */ | 104 .uleb128 0x3 /* (DIE (0x31) DW_TAG_member) */ |
105 .ascii "bar\0" /* DW_AT_name */ | 105 .ascii "bar\0" /* DW_AT_name */ |
106 .byte 0x1 /* DW_AT_decl_file (fission-reread.cc) */ | 106 .byte 0x1 /* DW_AT_decl_file (fission-reread.cc) */ |
107 .byte 0x4 /* DW_AT_decl_line */ | 107 .byte 0x4 /* DW_AT_decl_line */ |
108 » .4byte» .Ltu_int» /* DW_AT_type */ | 108 » .4byte» .Ltu_int - .Ltu_start_dwo /* DW_AT_type */ |
109 .byte 0 /* DW_AT_data_member_location */ | 109 .byte 0 /* DW_AT_data_member_location */ |
110 .byte 0x1 /* DW_AT_accessibility */ | 110 .byte 0x1 /* DW_AT_accessibility */ |
111 .byte 0 /* end of children of DIE 0x25 */ | 111 .byte 0 /* end of children of DIE 0x25 */ |
112 .Ltu_int: | 112 .Ltu_int: |
113 .uleb128 0x4 /* (DIE (0x3f) DW_TAG_base_type) */ | 113 .uleb128 0x4 /* (DIE (0x3f) DW_TAG_base_type) */ |
114 .byte 0x4 /* DW_AT_byte_size */ | 114 .byte 0x4 /* DW_AT_byte_size */ |
115 .byte 0x5 /* DW_AT_encoding */ | 115 .byte 0x5 /* DW_AT_encoding */ |
116 .ascii "int\0" /* DW_AT_name */ | 116 .ascii "int\0" /* DW_AT_name */ |
117 .byte 0 /* end of children of DIE 0x17 */ | 117 .byte 0 /* end of children of DIE 0x17 */ |
118 .Ltu_end_dwo: | 118 .Ltu_end_dwo: |
119 | 119 |
120 .section .debug_types | 120 .section .debug_types |
121 .Ltu_start: | 121 .Ltu_start: |
122 .4byte .Ltu_end - .Ltu_start - 4 /* Length of Type Unit Info */ | 122 .4byte .Ltu_end - .Ltu_start - 4 /* Length of Type Unit Info */ |
123 .2byte 0x4 /* DWARF version number */ | 123 .2byte 0x4 /* DWARF version number */ |
124 .4byte .Lskeleton_debug_abbrev0 /* Offset Into Abbrev. Section *
/ | 124 .4byte .Lskeleton_debug_abbrev0 /* Offset Into Abbrev. Section *
/ |
125 .byte 0x4 /* Pointer Size (in bytes) */ | 125 .byte 0x4 /* Pointer Size (in bytes) */ |
126 .byte 0x19 /* Type Signature */ | 126 .byte 0x19 /* Type Signature */ |
127 .byte 0x8b | 127 .byte 0x8b |
128 .byte 0x7e | 128 .byte 0x7e |
129 .byte 0xac | 129 .byte 0xac |
130 .byte 0xce | 130 .byte 0xce |
131 .byte 0xf1 | 131 .byte 0xf1 |
132 .byte 0x22 | 132 .byte 0x22 |
133 .byte 0x90 | 133 .byte 0x90 |
134 .4byte 0 /* Offset to Type DIE */ | 134 .4byte 0 /* Offset to Type DIE */ |
135 .uleb128 0x2 /* (DIE (0) DW_TAG_type_unit) */ | 135 .uleb128 0x2 /* (DIE (0) DW_TAG_type_unit) */ |
136 » .ascii "/tmp/src/gdb/testsuite/gdb.dwarf2\0"» /* DW_AT_comp_dir */ | 136 » .ascii "/tmp/src/gdb/testsuite\0"» /* DW_AT_comp_dir */ |
137 » /* Normally dwo_name would be "fission-reread.dwo". */ | 137 » .ascii "gdb.dwarf2/fission-reread.dwo\0" /* DW_AT_GNU_dwo_name */ |
138 » /* Simplification: Leave the DWO contents in the executable. */ | |
139 » .ascii "fission-reread\0"» /* DW_AT_GNU_dwo_name */ | |
140 .4byte .Ldebug_pubnames0 /* DW_AT_GNU_pubnames */ | 138 .4byte .Ldebug_pubnames0 /* DW_AT_GNU_pubnames */ |
141 .4byte .Ldebug_pubtypes0 /* DW_AT_GNU_pubtypes */ | 139 .4byte .Ldebug_pubtypes0 /* DW_AT_GNU_pubtypes */ |
142 .4byte .Ldebug_addr0 /* DW_AT_GNU_addr_base */ | 140 .4byte .Ldebug_addr0 /* DW_AT_GNU_addr_base */ |
143 .Ltu_end: | 141 .Ltu_end: |
144 | 142 |
145 .section .debug_info.dwo | 143 .section .debug_info.dwo |
146 .Lcu_start_dwo: | 144 .Lcu_start_dwo: |
147 .4byte .Lcu_end_dwo - .Lcu_start_dwo - 4 /* Length of Compilation
Unit Info */ | 145 .4byte .Lcu_end_dwo - .Lcu_start_dwo - 4 /* Length of Compilation
Unit Info */ |
148 .2byte 0x4 /* DWARF version number */ | 146 .2byte 0x4 /* DWARF version number */ |
149 .4byte .Ldebug_abbrev0 /* Offset Into Abbrev. Section */ | 147 .4byte .Ldebug_abbrev0 /* Offset Into Abbrev. Section */ |
150 .byte 0x4 /* Pointer Size (in bytes) */ | 148 .byte 0x4 /* Pointer Size (in bytes) */ |
151 .uleb128 0x5 /* (DIE (0xb) DW_TAG_compile_unit) */ | 149 .uleb128 0x5 /* (DIE (0xb) DW_TAG_compile_unit) */ |
152 .ascii "GNU C++ 4.6.x-fission\0" /* DW_AT_producer */ | 150 .ascii "GNU C++ 4.6.x-fission\0" /* DW_AT_producer */ |
153 .byte 0x4 /* DW_AT_language */ | 151 .byte 0x4 /* DW_AT_language */ |
154 » .ascii "fission-reread.cc\0"» /* DW_AT_name */ | 152 » .ascii "gdb.dwarf2/fission-reread.cc\0"»/* DW_AT_name */ |
155 » .ascii "/tmp/src/gdb/testsuite/gdb.dwarf2\0"» /* DW_AT_comp_dir */ | 153 » .ascii "/tmp/src/gdb/testsuite\0"» /* DW_AT_comp_dir */ |
156 » .byte» 0» /* DW_AT_GNU_dwo_id */ | 154 » .byte» 1» /* DW_AT_GNU_dwo_id */ |
157 » .byte» 0 | 155 » .byte» 2 |
158 » .byte» 0 | 156 » .byte» 3 |
159 » .byte» 0 | 157 » .byte» 4 |
160 » .byte» 0 | 158 » .byte» 5 |
161 » .byte» 0 | 159 » .byte» 6 |
162 » .byte» 0 | 160 » .byte» 7 |
163 » .byte» 0 | 161 » .byte» 8 |
164 .Lcu_int: | 162 .Lcu_int: |
165 .uleb128 0x4 /* (DIE (0x7f) DW_TAG_base_type) */ | 163 .uleb128 0x4 /* (DIE (0x7f) DW_TAG_base_type) */ |
166 .byte 0x4 /* DW_AT_byte_size */ | 164 .byte 0x4 /* DW_AT_byte_size */ |
167 .byte 0x5 /* DW_AT_encoding */ | 165 .byte 0x5 /* DW_AT_encoding */ |
168 .ascii "int\0" /* DW_AT_name */ | 166 .ascii "int\0" /* DW_AT_name */ |
169 .uleb128 0x6 /* (DIE (0x86) DW_TAG_subprogram) */ | 167 .uleb128 0x6 /* (DIE (0x86) DW_TAG_subprogram) */ |
170 /* DW_AT_external */ | 168 /* DW_AT_external */ |
171 .ascii "main\0" /* DW_AT_name */ | 169 .ascii "main\0" /* DW_AT_name */ |
172 .byte 0x1 /* DW_AT_decl_file (fission-reread.cc) */ | 170 .byte 0x1 /* DW_AT_decl_file (fission-reread.cc) */ |
173 .byte 0xa /* DW_AT_decl_line */ | 171 .byte 0xa /* DW_AT_decl_line */ |
174 » .4byte» .Lcu_int» /* DW_AT_type */ | 172 » .4byte» .Lcu_int - .Lcu_start_dwo /* DW_AT_type */ |
175 .uleb128 0 /* DW_AT_low_pc */ | 173 .uleb128 0 /* DW_AT_low_pc */ |
176 .4byte .LFE0-.LFB0 /* DW_AT_high_pc */ | 174 .4byte .LFE0-.LFB0 /* DW_AT_high_pc */ |
177 .uleb128 0x1 /* DW_AT_frame_base */ | 175 .uleb128 0x1 /* DW_AT_frame_base */ |
178 .byte 0x9c /* DW_OP_call_frame_cfa */ | 176 .byte 0x9c /* DW_OP_call_frame_cfa */ |
179 .uleb128 0x7 /* (DIE (0x9d) DW_TAG_variable) */ | 177 .uleb128 0x7 /* (DIE (0x9d) DW_TAG_variable) */ |
180 .ascii "baz\0" /* DW_AT_name */ | 178 .ascii "baz\0" /* DW_AT_name */ |
181 .byte 0x1 /* DW_AT_decl_file (fission-reread.cc) */ | 179 .byte 0x1 /* DW_AT_decl_file (fission-reread.cc) */ |
182 .byte 0x7 /* DW_AT_decl_line */ | 180 .byte 0x7 /* DW_AT_decl_line */ |
183 .byte 0x19 /* DW_AT_type */ | 181 .byte 0x19 /* DW_AT_type */ |
184 .byte 0x8b | 182 .byte 0x8b |
(...skipping 14 matching lines...) Expand all Loading... |
199 .Lskeleton_debug_info0: | 197 .Lskeleton_debug_info0: |
200 .Lcu_start: | 198 .Lcu_start: |
201 .4byte .Lcu_end - .Lcu_start - 4 /* Length of Compilation Unit In
fo */ | 199 .4byte .Lcu_end - .Lcu_start - 4 /* Length of Compilation Unit In
fo */ |
202 .2byte 0x4 /* DWARF version number */ | 200 .2byte 0x4 /* DWARF version number */ |
203 .4byte .Lskeleton_debug_abbrev0 /* Offset Into Abbrev. Section *
/ | 201 .4byte .Lskeleton_debug_abbrev0 /* Offset Into Abbrev. Section *
/ |
204 .byte 0x4 /* Pointer Size (in bytes) */ | 202 .byte 0x4 /* Pointer Size (in bytes) */ |
205 .uleb128 0x1 /* (DIE (0) DW_TAG_compile_unit) */ | 203 .uleb128 0x1 /* (DIE (0) DW_TAG_compile_unit) */ |
206 .4byte .Ltext0 /* DW_AT_low_pc */ | 204 .4byte .Ltext0 /* DW_AT_low_pc */ |
207 .4byte .Letext0-.Ltext0 /* DW_AT_high_pc */ | 205 .4byte .Letext0-.Ltext0 /* DW_AT_high_pc */ |
208 .4byte .Ldebug_line0 /* DW_AT_stmt_list */ | 206 .4byte .Ldebug_line0 /* DW_AT_stmt_list */ |
209 » .ascii "/tmp/src/gdb/testsuite/gdb.dwarf2\0"» /* DW_AT_comp_dir */ | 207 » .ascii "/tmp/src/gdb/testsuite\0"» /* DW_AT_comp_dir */ |
210 » /* Normally dwo_name would be "fission-reread.dwo". */ | 208 » .ascii "gdb.dwarf2/fission-reread.dwo\0" /* DW_AT_GNU_dwo_name */ |
211 » /* Simplification: Leave the DWO contents in the executable. */ | |
212 » .ascii "fission-reread\0"» /* DW_AT_GNU_dwo_name */ | |
213 .4byte .Ldebug_pubnames0 /* DW_AT_GNU_pubnames */ | 209 .4byte .Ldebug_pubnames0 /* DW_AT_GNU_pubnames */ |
214 .4byte .Ldebug_pubtypes0 /* DW_AT_GNU_pubtypes */ | 210 .4byte .Ldebug_pubtypes0 /* DW_AT_GNU_pubtypes */ |
215 .4byte .Ldebug_addr0 /* DW_AT_GNU_addr_base */ | 211 .4byte .Ldebug_addr0 /* DW_AT_GNU_addr_base */ |
216 » .byte» 0» /* DW_AT_GNU_dwo_id */ | 212 » .byte» 1» /* DW_AT_GNU_dwo_id */ |
217 » .byte» 0 | 213 » .byte» 2 |
218 » .byte» 0 | 214 » .byte» 3 |
219 » .byte» 0 | 215 » .byte» 4 |
220 » .byte» 0 | 216 » .byte» 5 |
221 » .byte» 0 | 217 » .byte» 6 |
222 » .byte» 0 | 218 » .byte» 7 |
223 » .byte» 0 | 219 » .byte» 8 |
224 .Lcu_end: | 220 .Lcu_end: |
225 | 221 |
226 .section .debug_abbrev | 222 .section .debug_abbrev |
227 .Lskeleton_debug_abbrev0: | 223 .Lskeleton_debug_abbrev0: |
228 .uleb128 0x1 /* (abbrev code) */ | 224 .uleb128 0x1 /* (abbrev code) */ |
229 .uleb128 0x11 /* (TAG: DW_TAG_compile_unit) */ | 225 .uleb128 0x11 /* (TAG: DW_TAG_compile_unit) */ |
230 .byte 0 /* DW_children_no */ | 226 .byte 0 /* DW_children_no */ |
231 .uleb128 0x11 /* (DW_AT_low_pc) */ | 227 .uleb128 0x11 /* (DW_AT_low_pc) */ |
232 .uleb128 0x1 /* (DW_FORM_addr) */ | 228 .uleb128 0x1 /* (DW_FORM_addr) */ |
233 .uleb128 0x12 /* (DW_AT_high_pc) */ | 229 .uleb128 0x12 /* (DW_AT_high_pc) */ |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 .4byte 0x1e /* Length of Public Type Names Info */ | 397 .4byte 0x1e /* Length of Public Type Names Info */ |
402 .2byte 0x2 /* DWARF Version */ | 398 .2byte 0x2 /* DWARF Version */ |
403 .4byte .Lskeleton_debug_info0 /* Offset of Compilation Unit Info */ | 399 .4byte .Lskeleton_debug_info0 /* Offset of Compilation Unit Info */ |
404 .4byte 0xb0 /* Compilation Unit Length */ | 400 .4byte 0xb0 /* Compilation Unit Length */ |
405 .4byte 0x7f /* DIE offset */ | 401 .4byte 0x7f /* DIE offset */ |
406 .ascii "int\0" /* external name */ | 402 .ascii "int\0" /* external name */ |
407 .4byte 0x25 /* DIE offset */ | 403 .4byte 0x25 /* DIE offset */ |
408 .ascii "foo\0" /* external name */ | 404 .ascii "foo\0" /* external name */ |
409 .4byte 0 | 405 .4byte 0 |
410 .section .debug_aranges | 406 .section .debug_aranges |
411 » .4byte» 0x2c» /* Length of Address Ranges Info */ | 407 » .4byte» 0x1c» /* Length of Address Ranges Info */ |
412 .2byte 0x2 /* DWARF Version */ | 408 .2byte 0x2 /* DWARF Version */ |
413 .4byte .Lskeleton_debug_info0 /* Offset of Compilation Unit Info */ | 409 .4byte .Lskeleton_debug_info0 /* Offset of Compilation Unit Info */ |
414 » .byte» 0x8» /* Size of Address */ | 410 » .byte» 0x4» /* Size of Address */ |
415 .byte 0 /* Size of Segment Descriptor */ | 411 .byte 0 /* Size of Segment Descriptor */ |
416 .2byte 0 /* Pad to 16 byte boundary */ | 412 .2byte 0 /* Pad to 16 byte boundary */ |
417 .2byte 0 | 413 .2byte 0 |
418 .4byte .Ltext0 /* Address */ | 414 .4byte .Ltext0 /* Address */ |
419 .4byte .Letext0-.Ltext0 /* Length */ | 415 .4byte .Letext0-.Ltext0 /* Length */ |
420 .4byte 0 | 416 .4byte 0 |
421 .4byte 0 | 417 .4byte 0 |
422 .section .debug_line | 418 .section .debug_line |
423 .Ldebug_line0: | 419 .Ldebug_line0: |
424 .section .debug_line.dwo | 420 .section .debug_line.dwo |
(...skipping 23 matching lines...) Expand all Loading... |
448 .uleb128 0 | 444 .uleb128 0 |
449 .uleb128 0 | 445 .uleb128 0 |
450 .uleb128 0 | 446 .uleb128 0 |
451 .byte 0 /* End file name table */ | 447 .byte 0 /* End file name table */ |
452 .LELTP0: | 448 .LELTP0: |
453 .LELT0: | 449 .LELT0: |
454 .section .debug_addr | 450 .section .debug_addr |
455 .Ldebug_addr0: | 451 .Ldebug_addr0: |
456 .4byte .LFB0 /* DW_AT_low_pc */ | 452 .4byte .LFB0 /* DW_AT_low_pc */ |
457 .4byte baz /* DW_AT_location */ | 453 .4byte baz /* DW_AT_location */ |
OLD | NEW |