LEFT | RIGHT |
(no file at all) | |
1 // Copyright 2010 The Go Authors. All rights reserved. | 1 // Copyright 2010 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 // TODO/NICETOHAVE: | 5 // TODO/NICETOHAVE: |
6 // - eliminate DW_CLS_ if not used | 6 // - eliminate DW_CLS_ if not used |
7 // - package info in compilation units | 7 // - package info in compilation units |
8 // - assign global variables and types to their packages | 8 // - assign global variables and types to their packages |
9 // - gdb uses c syntax, meaning clumsy quoting is needed for go identifiers. e
g | 9 // - gdb uses c syntax, meaning clumsy quoting is needed for go identifiers. e
g |
10 // ptype struct '[]uint8' and qualifiers need to be quoted away | 10 // ptype struct '[]uint8' and qualifiers need to be quoted away |
(...skipping 2299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2310 newdie(&dwtypes, DW_ABRV_NULLTYPE, "<unspecified>"); | 2310 newdie(&dwtypes, DW_ABRV_NULLTYPE, "<unspecified>"); |
2311 newdie(&dwtypes, DW_ABRV_NULLTYPE, "void"); | 2311 newdie(&dwtypes, DW_ABRV_NULLTYPE, "void"); |
2312 newrefattr(newdie(&dwtypes, DW_ABRV_PTRTYPE, "unsafe.Pointer"), | 2312 newrefattr(newdie(&dwtypes, DW_ABRV_PTRTYPE, "unsafe.Pointer"), |
2313 DW_AT_type, find(&dwtypes, "void")); | 2313 DW_AT_type, find(&dwtypes, "void")); |
2314 die = newdie(&dwtypes, DW_ABRV_BASETYPE, "uintptr"); // needed for arra
y size | 2314 die = newdie(&dwtypes, DW_ABRV_BASETYPE, "uintptr"); // needed for arra
y size |
2315 newattr(die, DW_AT_encoding, DW_CLS_CONSTANT, DW_ATE_unsigned, 0); | 2315 newattr(die, DW_AT_encoding, DW_CLS_CONSTANT, DW_ATE_unsigned, 0); |
2316 newattr(die, DW_AT_byte_size, DW_CLS_CONSTANT, PtrSize, 0); | 2316 newattr(die, DW_AT_byte_size, DW_CLS_CONSTANT, PtrSize, 0); |
2317 | 2317 |
2318 // Needed by the prettyprinter code for interface inspection. | 2318 // Needed by the prettyprinter code for interface inspection. |
2319 defgotype(lookup_or_diag("type.runtime.commonType")); | 2319 defgotype(lookup_or_diag("type.runtime.commonType")); |
2320 » defgotype(lookup_or_diag("type.runtime.InterfaceType")); | 2320 » defgotype(lookup_or_diag("type.runtime.interfaceType")); |
2321 defgotype(lookup_or_diag("type.runtime.itab")); | 2321 defgotype(lookup_or_diag("type.runtime.itab")); |
2322 | 2322 |
2323 genasmsym(defdwsymb); | 2323 genasmsym(defdwsymb); |
2324 | 2324 |
2325 writeabbrev(); | 2325 writeabbrev(); |
2326 align(abbrevsize); | 2326 align(abbrevsize); |
2327 writelines(); | 2327 writelines(); |
2328 align(linesize); | 2328 align(linesize); |
2329 writeframes(); | 2329 writeframes(); |
2330 align(framesize); | 2330 align(framesize); |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2583 | 2583 |
2584 newPEDWARFSection(".debug_abbrev", abbrevsize); | 2584 newPEDWARFSection(".debug_abbrev", abbrevsize); |
2585 newPEDWARFSection(".debug_line", linesize); | 2585 newPEDWARFSection(".debug_line", linesize); |
2586 newPEDWARFSection(".debug_frame", framesize); | 2586 newPEDWARFSection(".debug_frame", framesize); |
2587 newPEDWARFSection(".debug_info", infosize); | 2587 newPEDWARFSection(".debug_info", infosize); |
2588 newPEDWARFSection(".debug_pubnames", pubnamessize); | 2588 newPEDWARFSection(".debug_pubnames", pubnamessize); |
2589 newPEDWARFSection(".debug_pubtypes", pubtypessize); | 2589 newPEDWARFSection(".debug_pubtypes", pubtypessize); |
2590 newPEDWARFSection(".debug_aranges", arangessize); | 2590 newPEDWARFSection(".debug_aranges", arangessize); |
2591 newPEDWARFSection(".debug_gdb_scripts", gdbscriptsize); | 2591 newPEDWARFSection(".debug_gdb_scripts", gdbscriptsize); |
2592 } | 2592 } |
LEFT | RIGHT |