This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH] Add DWARF 2.1 "things" to enums in dwarf2.h


2001-06-28  Daniel Berlin  <dan@cgsoftware.com>

	* dwarf2.h: Add dwarf 2.1 tags/attributes/etc to the enums.

Index: dwarf2.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/dwarf2.h,v
retrieving revision 1.18
diff -c -3 -p -w -B -b -r1.18 dwarf2.h
*** dwarf2.h	2001/06/06 01:57:49	1.18
--- dwarf2.h	2001/06/28 16:56:54
*************** enum dwarf_tag
*** 83,88 ****
--- 83,97 ----
      DW_TAG_variant_part = 0x33,
      DW_TAG_variable = 0x34,
      DW_TAG_volatile_type = 0x35,
+     /* DWARF 2.1 */
+     DW_TAG_dwarf_procedure = 0x36,
+     DW_TAG_restrict_type = 0x37,
+     DW_TAG_interface_type = 0x38,
+     DW_TAG_namespace = 0x39,
+     DW_TAG_imported_module = 0x3a,
+     DW_TAG_unspecified_type = 0x3b,
+     DW_TAG_partial_unit = 0x3c,
+     DW_TAG_imported_unit = 0x3d,
      /* SGI/MIPS Extensions */
      DW_TAG_MIPS_loop = 0x4081,
      /* GNU extensions */
*************** enum dwarf_attribute
*** 192,197 ****
--- 201,219 ----
      DW_AT_variable_parameter = 0x4b,
      DW_AT_virtuality = 0x4c,
      DW_AT_vtable_elem_location = 0x4d,
+     /* DWARF 2.1 */
+     DW_AT_allocated = 0x4e,
+     DW_AT_associated = 0x4f,
+     DW_AT_data_location = 0x50, 
+     DW_AT_stride = 0x51,
+     DW_AT_entry_pc = 0x52,
+     DW_AT_use_UTF8 = 0x53,
+     DW_AT_extension = 0x54,
+     DW_AT_ranges = 0x55,
+     DW_AT_trampoline = 0x56,
+     DW_AT_call_column = 0x57, 
+     DW_AT_call_file = 0x58,
+     DW_AT_call_line = 0x59,
      /* SGI/MIPS Extensions */
      DW_AT_MIPS_fde = 0x2001,
      DW_AT_MIPS_loop_begin = 0x2002,
*************** enum dwarf_location_atom
*** 364,370 ****
      DW_OP_piece = 0x93,
      DW_OP_deref_size = 0x94,
      DW_OP_xderef_size = 0x95,
!     DW_OP_nop = 0x96
    };
  
  #define DW_OP_lo_user	0x80	/* implementation-defined range start */
--- 386,397 ----
      DW_OP_piece = 0x93,
      DW_OP_deref_size = 0x94,
      DW_OP_xderef_size = 0x95,
!     DW_OP_nop = 0x96,
!     /* DWARF 2.1 */
!     DW_OP_push_object_address = 0x97,
!     DW_OP_call2 = 0x98,
!     DW_OP_call4 = 0x99,
!     DW_OP_calli = 0x9a
    };
  
  #define DW_OP_lo_user	0x80	/* implementation-defined range start */
*************** enum dwarf_type
*** 382,388 ****
      DW_ATE_signed = 0x5,
      DW_ATE_signed_char = 0x6,
      DW_ATE_unsigned = 0x7,
!     DW_ATE_unsigned_char = 0x8
    };
  
  #define	DW_ATE_lo_user 0x80
--- 409,417 ----
      DW_ATE_signed = 0x5,
      DW_ATE_signed_char = 0x6,
      DW_ATE_unsigned = 0x7,
!     DW_ATE_unsigned_char = 0x8,
!     /* DWARF 2.1 */
!     DW_ATE_imaginary_float = 0x9
    };
  
  #define	DW_ATE_lo_user 0x80
*************** enum dwarf_source_language
*** 542,547 ****
--- 571,581 ----
      DW_LANG_Pascal83 = 0x0009,
      DW_LANG_Modula2 = 0x000a,
      DW_LANG_Java = 0x000b,
+     /* DWARF 2.1 */
+     DW_LANG_C99 = 0x000c,
+     DW_LANG_Ada95 = 0x000d,
+     DW_LANG_Fortran95 = 0x000e,
+     /* MIPS */
      DW_LANG_Mips_Assembler = 0x8001
    };
  

-- 
"I put contact lenses in my dog's eyes.  They had little pictures
of cats on them.  Then I took one out and he ran around in
circles.
"-Steven Wright


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]