elf/dwarf2.h: Sync with gcc version.

This commit is contained in:
Jason Merrill 2002-01-28 23:26:53 +00:00
parent c909d9ad10
commit dc9ebeffca
2 changed files with 31 additions and 23 deletions

View File

@ -1,3 +1,7 @@
2002-01-28 Jason Merrill <jason@redhat.com>
* elf/dwarf2.h: Sync with gcc version.
2002-01-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2002-01-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* libiberty.h (C_alloca): Add ATTRIBUTE_MALLOC. * libiberty.h (C_alloca): Add ATTRIBUTE_MALLOC.

View File

@ -1,6 +1,6 @@
/* Declarations and definitions of codes relating to the DWARF2 symbolic /* Declarations and definitions of codes relating to the DWARF2 symbolic
debugging information format. debugging information format.
Copyright 1992, 1993, 1995, 1996, 1999, 2000, 2001 Copyright (C) 1992, 1993, 1995, 1996, 1997, 1999, 2000, 2001, 2002
Free Software Foundation, Inc. Free Software Foundation, Inc.
Written by Gary Funck (gary@intrepid.com) The Ada Joint Program Written by Gary Funck (gary@intrepid.com) The Ada Joint Program
@ -10,21 +10,22 @@
Derived from the DWARF 1 implementation written by Ron Guilmette Derived from the DWARF 1 implementation written by Ron Guilmette
(rfg@netcom.com), November 1990. (rfg@netcom.com), November 1990.
This file is part of GNU CC. This file is part of GCC.
GNU CC is free software; you can redistribute it and/or modify it GCC is free software; you can redistribute it and/or modify it under
under the terms of the GNU General Public License as published by the the terms of the GNU General Public License as published by the Free
Free Software Foundation; either version 2, or (at your option) any Software Foundation; either version 2, or (at your option) any later
later version. version.
GNU CC is distributed in the hope that it will be useful, but WITHOUT GCC is distributed in the hope that it will be useful, but WITHOUT ANY
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details. for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with GNU CC; see the file COPYING. If not, write to the Free along with GCC; see the file COPYING. If not, write to the Free
Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA. */
/* This file is derived from the DWARF specification (a public document) /* This file is derived from the DWARF specification (a public document)
Revision 2.0.0 (July 27, 1993) developed by the UNIX International Revision 2.0.0 (July 27, 1993) developed by the UNIX International
@ -32,7 +33,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
by UNIX International. Copies of this specification are available from by UNIX International. Copies of this specification are available from
UNIX International, 20 Waterview Boulevard, Parsippany, NJ, 07054. UNIX International, 20 Waterview Boulevard, Parsippany, NJ, 07054.
This file also now contains definitions from the DWARF 2.1 specification. */ This file also now contains definitions from the DWARF 3 specification. */
/* This file is shared between GCC and GDB, and should not contain /* This file is shared between GCC and GDB, and should not contain
prototypes. */ prototypes. */
@ -177,7 +178,7 @@ enum dwarf_tag
DW_TAG_variant_part = 0x33, DW_TAG_variant_part = 0x33,
DW_TAG_variable = 0x34, DW_TAG_variable = 0x34,
DW_TAG_volatile_type = 0x35, DW_TAG_volatile_type = 0x35,
/* DWARF 2.1. */ /* DWARF 3. */
DW_TAG_dwarf_procedure = 0x36, DW_TAG_dwarf_procedure = 0x36,
DW_TAG_restrict_type = 0x37, DW_TAG_restrict_type = 0x37,
DW_TAG_interface_type = 0x38, DW_TAG_interface_type = 0x38,
@ -190,8 +191,8 @@ enum dwarf_tag
DW_TAG_MIPS_loop = 0x4081, DW_TAG_MIPS_loop = 0x4081,
/* GNU extensions. */ /* GNU extensions. */
DW_TAG_format_label = 0x4101, /* For FORTRAN 77 and Fortran 90. */ DW_TAG_format_label = 0x4101, /* For FORTRAN 77 and Fortran 90. */
DW_TAG_function_template = 0x4102, /* for C++ */ DW_TAG_function_template = 0x4102, /* For C++. */
DW_TAG_class_template = 0x4103, /* for C++ */ DW_TAG_class_template = 0x4103, /* For C++. */
DW_TAG_GNU_BINCL = 0x4104, DW_TAG_GNU_BINCL = 0x4104,
DW_TAG_GNU_EINCL = 0x4105 DW_TAG_GNU_EINCL = 0x4105
}; };
@ -295,7 +296,7 @@ enum dwarf_attribute
DW_AT_variable_parameter = 0x4b, DW_AT_variable_parameter = 0x4b,
DW_AT_virtuality = 0x4c, DW_AT_virtuality = 0x4c,
DW_AT_vtable_elem_location = 0x4d, DW_AT_vtable_elem_location = 0x4d,
/* DWARF 2.1 values. */ /* DWARF 3 values. */
DW_AT_allocated = 0x4e, DW_AT_allocated = 0x4e,
DW_AT_associated = 0x4f, DW_AT_associated = 0x4f,
DW_AT_data_location = 0x50, DW_AT_data_location = 0x50,
@ -326,7 +327,9 @@ enum dwarf_attribute
DW_AT_mac_info = 0x2103, DW_AT_mac_info = 0x2103,
DW_AT_src_coords = 0x2104, DW_AT_src_coords = 0x2104,
DW_AT_body_begin = 0x2105, DW_AT_body_begin = 0x2105,
DW_AT_body_end = 0x2106 DW_AT_body_end = 0x2106,
/* VMS Extensions. */
DW_AT_VMS_rtnbeg_pd_address = 0x2201
}; };
#define DW_AT_lo_user 0x2000 /* Implementation-defined range start. */ #define DW_AT_lo_user 0x2000 /* Implementation-defined range start. */
@ -480,10 +483,10 @@ enum dwarf_location_atom
DW_OP_deref_size = 0x94, DW_OP_deref_size = 0x94,
DW_OP_xderef_size = 0x95, DW_OP_xderef_size = 0x95,
DW_OP_nop = 0x96, DW_OP_nop = 0x96,
/* DWARF 2.1 extensions. */ /* DWARF 3 extensions. */
DW_OP_push_object_address = 0x97, DW_OP_push_object_address = 0x97,
DW_OP_call2 = 0x98, /* 1 2-byte offset of DIE. */ DW_OP_call2 = 0x98,
DW_OP_call4 = 0x99, /* 1 4-byte offset of DIE. */ DW_OP_call4 = 0x99,
DW_OP_calli = 0x9a DW_OP_calli = 0x9a
}; };
@ -502,7 +505,7 @@ enum dwarf_type
DW_ATE_signed_char = 0x6, DW_ATE_signed_char = 0x6,
DW_ATE_unsigned = 0x7, DW_ATE_unsigned = 0x7,
DW_ATE_unsigned_char = 0x8, DW_ATE_unsigned_char = 0x8,
/* DWARF 2.1. */ /* DWARF 3. */
DW_ATE_imaginary_float = 0x9 DW_ATE_imaginary_float = 0x9
}; };
@ -589,7 +592,7 @@ enum dwarf_line_number_ops
DW_LNS_set_basic_block = 7, DW_LNS_set_basic_block = 7,
DW_LNS_const_add_pc = 8, DW_LNS_const_add_pc = 8,
DW_LNS_fixed_advance_pc = 9, DW_LNS_fixed_advance_pc = 9,
/* DWARF 3 */ /* DWARF 3. */
DW_LNS_set_prologue_end = 10, DW_LNS_set_prologue_end = 10,
DW_LNS_set_epilogue_begin = 11, DW_LNS_set_epilogue_begin = 11,
DW_LNS_set_isa = 12 DW_LNS_set_isa = 12
@ -624,9 +627,10 @@ enum dwarf_call_frame_info
DW_CFA_def_cfa = 0x0c, DW_CFA_def_cfa = 0x0c,
DW_CFA_def_cfa_register = 0x0d, DW_CFA_def_cfa_register = 0x0d,
DW_CFA_def_cfa_offset = 0x0e, DW_CFA_def_cfa_offset = 0x0e,
/* DWARF 3. */
DW_CFA_def_cfa_expression = 0x0f, DW_CFA_def_cfa_expression = 0x0f,
DW_CFA_expression = 0x10, DW_CFA_expression = 0x10,
/* Dwarf 2.1. */
DW_CFA_offset_extended_sf = 0x11, DW_CFA_offset_extended_sf = 0x11,
DW_CFA_def_cfa_sf = 0x12, DW_CFA_def_cfa_sf = 0x12,
DW_CFA_def_cfa_offset_sf = 0x13, DW_CFA_def_cfa_offset_sf = 0x13,
@ -666,7 +670,7 @@ enum dwarf_source_language
DW_LANG_Pascal83 = 0x0009, DW_LANG_Pascal83 = 0x0009,
DW_LANG_Modula2 = 0x000a, DW_LANG_Modula2 = 0x000a,
DW_LANG_Java = 0x000b, DW_LANG_Java = 0x000b,
/* DWARF 2.1. */ /* DWARF 3. */
DW_LANG_C99 = 0x000c, DW_LANG_C99 = 0x000c,
DW_LANG_Ada95 = 0x000d, DW_LANG_Ada95 = 0x000d,
DW_LANG_Fortran95 = 0x000e, DW_LANG_Fortran95 = 0x000e,