OK to backport this from trunk to google/main and google/gcc-4_6? [I've fixed the include/ChangeLog entry from "include/dwarf2.h" to "dwarf2.h".]
-cary On Thu, Jan 26, 2012 at 2:04 PM, Cary Coutant <ccout...@google.com> wrote: >> Especially in this case where it is primarily for experimenting with it I >> think using higher values would be better, though perhaps still some that >> fit into two byte ULEB128. > > OK. Revised patch... > > -cary > > > 2012-01-26 Cary Coutant <ccout...@google.com> > > * dwarf2.h (enum dwarf_form): Add Fission extensions. > (enum dwarf_attribute): Likewise. > > > commit 0097fed73afa307f5cfc5de9cae0d3041f66193f > Author: Cary Coutant <ccout...@google.com> > Date: Sat Nov 5 01:17:06 2011 -0700 > > Add new DW_AT and DW_FORM codes for Fission. > > diff --git a/include/dwarf2.h b/include/dwarf2.h > index 37cb83f..8c0c9ed 100644 > --- a/include/dwarf2.h > +++ b/include/dwarf2.h > @@ -188,7 +188,11 @@ enum dwarf_form > DW_FORM_sec_offset = 0x17, > DW_FORM_exprloc = 0x18, > DW_FORM_flag_present = 0x19, > - DW_FORM_ref_sig8 = 0x20 > + DW_FORM_ref_sig8 = 0x20, > + /* Extensions for Fission. See http://gcc.gnu.org/wiki/DebugFission. */ > + DW_FORM_GNU_ref_index = 0x1f00, > + DW_FORM_GNU_addr_index = 0x1f01, > + DW_FORM_GNU_str_index = 0x1f02 > }; > > /* Attribute names and codes. */ > @@ -368,6 +372,13 @@ enum dwarf_attribute > DW_AT_GNU_all_source_call_sites = 0x2118, > /* Section offset into .debug_macro section. */ > DW_AT_GNU_macros = 0x2119, > + /* Extensions for Fission. See http://gcc.gnu.org/wiki/DebugFission. */ > + DW_AT_GNU_dwo_name = 0x2130, > + DW_AT_GNU_dwo_id = 0x2131, > + DW_AT_GNU_ref_base = 0x2132, > + DW_AT_GNU_addr_base = 0x2133, > + DW_AT_GNU_pubnames = 0x2134, > + DW_AT_GNU_pubtypes = 0x2135, > /* VMS extensions. */ > DW_AT_VMS_rtnbeg_pd_address = 0x2201, > /* GNAT extensions. */