OLD | NEW |
1 // -*- mode: c++ -*- | 1 // -*- mode: c++ -*- |
2 | 2 |
3 // Copyright (c) 2010 Google Inc. All Rights Reserved. | 3 // Copyright (c) 2010 Google Inc. All Rights Reserved. |
4 // | 4 // |
5 // Redistribution and use in source and binary forms, with or without | 5 // Redistribution and use in source and binary forms, with or without |
6 // modification, are permitted provided that the following conditions are | 6 // modification, are permitted provided that the following conditions are |
7 // met: | 7 // met: |
8 // | 8 // |
9 // * Redistributions of source code must retain the above copyright | 9 // * Redistributions of source code must retain the above copyright |
10 // notice, this list of conditions and the following disclaimer. | 10 // notice, this list of conditions and the following disclaimer. |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 DW_AT_data_location = 0x50, | 225 DW_AT_data_location = 0x50, |
226 DW_AT_stride = 0x51, | 226 DW_AT_stride = 0x51, |
227 DW_AT_entry_pc = 0x52, | 227 DW_AT_entry_pc = 0x52, |
228 DW_AT_use_UTF8 = 0x53, | 228 DW_AT_use_UTF8 = 0x53, |
229 DW_AT_extension = 0x54, | 229 DW_AT_extension = 0x54, |
230 DW_AT_ranges = 0x55, | 230 DW_AT_ranges = 0x55, |
231 DW_AT_trampoline = 0x56, | 231 DW_AT_trampoline = 0x56, |
232 DW_AT_call_column = 0x57, | 232 DW_AT_call_column = 0x57, |
233 DW_AT_call_file = 0x58, | 233 DW_AT_call_file = 0x58, |
234 DW_AT_call_line = 0x59, | 234 DW_AT_call_line = 0x59, |
| 235 // DWARF 4 |
| 236 DW_AT_linkage_name = 0x6e, |
235 // SGI/MIPS extensions. | 237 // SGI/MIPS extensions. |
236 DW_AT_MIPS_fde = 0x2001, | 238 DW_AT_MIPS_fde = 0x2001, |
237 DW_AT_MIPS_loop_begin = 0x2002, | 239 DW_AT_MIPS_loop_begin = 0x2002, |
238 DW_AT_MIPS_tail_loop_begin = 0x2003, | 240 DW_AT_MIPS_tail_loop_begin = 0x2003, |
239 DW_AT_MIPS_epilog_begin = 0x2004, | 241 DW_AT_MIPS_epilog_begin = 0x2004, |
240 DW_AT_MIPS_loop_unroll_factor = 0x2005, | 242 DW_AT_MIPS_loop_unroll_factor = 0x2005, |
241 DW_AT_MIPS_software_pipeline_depth = 0x2006, | 243 DW_AT_MIPS_software_pipeline_depth = 0x2006, |
242 DW_AT_MIPS_linkage_name = 0x2007, | 244 DW_AT_MIPS_linkage_name = 0x2007, |
243 DW_AT_MIPS_stride = 0x2008, | 245 DW_AT_MIPS_stride = 0x2008, |
244 DW_AT_MIPS_abstract_name = 0x2009, | 246 DW_AT_MIPS_abstract_name = 0x2009, |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
492 DW_OP_nop =0x96, | 494 DW_OP_nop =0x96, |
493 // DWARF3/DWARF3f | 495 // DWARF3/DWARF3f |
494 DW_OP_push_object_address =0x97, | 496 DW_OP_push_object_address =0x97, |
495 DW_OP_call2 =0x98, | 497 DW_OP_call2 =0x98, |
496 DW_OP_call4 =0x99, | 498 DW_OP_call4 =0x99, |
497 DW_OP_call_ref =0x9a, | 499 DW_OP_call_ref =0x9a, |
498 DW_OP_form_tls_address =0x9b, | 500 DW_OP_form_tls_address =0x9b, |
499 DW_OP_call_frame_cfa =0x9c, | 501 DW_OP_call_frame_cfa =0x9c, |
500 DW_OP_bit_piece =0x9d, | 502 DW_OP_bit_piece =0x9d, |
501 DW_OP_lo_user =0xe0, | 503 DW_OP_lo_user =0xe0, |
502 DW_OP_hi_user =0xff, | 504 DW_OP_hi_user =0xff, |
503 // GNU extensions | 505 // GNU extensions |
504 DW_OP_GNU_push_tls_address =0xe0, | 506 DW_OP_GNU_push_tls_address =0xe0, |
505 // Extensions for Fission. See http://gcc.gnu.org/wiki/DebugFission. | 507 // Extensions for Fission. See http://gcc.gnu.org/wiki/DebugFission. |
506 DW_OP_GNU_addr_index =0xfb, | 508 DW_OP_GNU_addr_index =0xfb, |
507 DW_OP_GNU_const_index =0xfc | 509 DW_OP_GNU_const_index =0xfc |
508 }; | 510 }; |
509 | 511 |
510 // Section identifiers for DWP files | 512 // Section identifiers for DWP files |
511 enum DwarfSectionId { | 513 enum DwarfSectionId { |
512 DW_SECT_INFO = 1, | 514 DW_SECT_INFO = 1, |
(...skipping 22 matching lines...) Expand all Loading... |
535 DW_LANG_Modula2 =0x000a, | 537 DW_LANG_Modula2 =0x000a, |
536 DW_LANG_Java =0x000b, | 538 DW_LANG_Java =0x000b, |
537 DW_LANG_C99 =0x000c, | 539 DW_LANG_C99 =0x000c, |
538 DW_LANG_Ada95 =0x000d, | 540 DW_LANG_Ada95 =0x000d, |
539 DW_LANG_Fortran95 =0x000e, | 541 DW_LANG_Fortran95 =0x000e, |
540 DW_LANG_PLI =0x000f, | 542 DW_LANG_PLI =0x000f, |
541 DW_LANG_ObjC =0x0010, | 543 DW_LANG_ObjC =0x0010, |
542 DW_LANG_ObjC_plus_plus =0x0011, | 544 DW_LANG_ObjC_plus_plus =0x0011, |
543 DW_LANG_UPC =0x0012, | 545 DW_LANG_UPC =0x0012, |
544 DW_LANG_D =0x0013, | 546 DW_LANG_D =0x0013, |
| 547 DW_LANG_Swift =0x001e, |
545 // Implementation-defined language code range. | 548 // Implementation-defined language code range. |
546 DW_LANG_lo_user = 0x8000, | 549 DW_LANG_lo_user = 0x8000, |
547 DW_LANG_hi_user = 0xffff, | 550 DW_LANG_hi_user = 0xffff, |
548 | 551 |
549 // Extensions. | 552 // Extensions. |
550 | 553 |
551 // MIPS assembly language. The GNU toolchain uses this for all | 554 // MIPS assembly language. The GNU toolchain uses this for all |
552 // assembly languages, since there's no generic DW_LANG_ value for that. | 555 // assembly languages, since there's no generic DW_LANG_ value for that. |
553 // See include/dwarf2.h in the binutils, gdb, or gcc source trees. | 556 // See include/dwarf2.h in the binutils, gdb, or gcc source trees. |
554 DW_LANG_Mips_Assembler =0x8001, | 557 DW_LANG_Mips_Assembler =0x8001, |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
661 // The GNU toolchain sources define this enum value as well, | 664 // The GNU toolchain sources define this enum value as well, |
662 // simply to help classify the lower nybble values into signed and | 665 // simply to help classify the lower nybble values into signed and |
663 // unsigned groups. | 666 // unsigned groups. |
664 DW_EH_PE_signed = 0x08, | 667 DW_EH_PE_signed = 0x08, |
665 | 668 |
666 // This is not documented in LSB 4.0, but it is used in both the | 669 // This is not documented in LSB 4.0, but it is used in both the |
667 // Linux and OS X toolchains. It can be added to any other | 670 // Linux and OS X toolchains. It can be added to any other |
668 // encoding (except DW_EH_PE_aligned), and indicates that the | 671 // encoding (except DW_EH_PE_aligned), and indicates that the |
669 // encoded value represents the address at which the true address | 672 // encoded value represents the address at which the true address |
670 // is stored, not the true address itself. | 673 // is stored, not the true address itself. |
671 DW_EH_PE_indirect» = 0x80 | 674 DW_EH_PE_indirect» = 0x80 |
672 }; | 675 }; |
673 | 676 |
674 } // namespace dwarf2reader | 677 } // namespace dwarf2reader |
675 #endif // COMMON_DWARF_DWARF2ENUMS_H__ | 678 #endif // COMMON_DWARF_DWARF2ENUMS_H__ |
OLD | NEW |