Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: dje@google.com (Doug Evans)
To: binutils@sourceware.org, gcc-patches@gcc.gnu.org
Cc: gdb-patches@sourceware.org, ccoutant@google.com
Subject: [RFA] Add dwarf4 values to include/dwarf2.h
Date: Thu, 16 Jul 2009 21:19:00 -0000	[thread overview]
Message-ID: <20090716205428.8CCBB846E6@localhost> (raw)

Hi.

This patch adds various dwarf4 elements, plus DW_AT_GNU_odr_signature,
to include/dwarf2.h.

Ok to check in?

[I have a gdb patch that's ready to go in to support "comdat types".
And this will also be needed for the gcc side, which is currently
on the dwarf4 branch.]

2009-07-15  Doug Evans  <dje@google.com>
	    Cary Coutant  <ccoutant@google.com>

	* dwarf2.h (enum dwarf_tag): Add DW_TAG_type_unit.
	(enum dwarf_form): Add DW_FORM_sec_offset, DW_FORM_exprloc,
	DW_FORM_flag_present, DW_FORM_sig8.
	(enum dwarf_attribute): Add DW_AT_signature, DW_AT_GNU_odr_signature.

diff -u -p -r1.2 dwarf2.h
--- dwarf2.h	9 Jul 2009 21:01:15 -0000	1.2
+++ dwarf2.h	14 Jul 2009 23:22:35 -0000
@@ -194,6 +194,8 @@ enum dwarf_tag
     DW_TAG_imported_unit = 0x3d,
     DW_TAG_condition = 0x3f,
     DW_TAG_shared_type = 0x40,
+    /* DWARF 4.  */
+    DW_TAG_type_unit = 0x41,
 
     DW_TAG_lo_user = 0x4080,
     DW_TAG_hi_user = 0xffff,
@@ -244,7 +246,12 @@ enum dwarf_form
     DW_FORM_ref4 = 0x13,
     DW_FORM_ref8 = 0x14,
     DW_FORM_ref_udata = 0x15,
-    DW_FORM_indirect = 0x16
+    DW_FORM_indirect = 0x16,
+    /* DWARF 4.  */
+    DW_FORM_sec_offset = 0x17,
+    DW_FORM_exprloc = 0x18,
+    DW_FORM_flag_present = 0x19,
+    DW_FORM_sig8 = 0x20
   };
 
 /* Attribute names and codes.  */
@@ -342,6 +349,8 @@ enum dwarf_attribute
     DW_AT_elemental     = 0x66,
     DW_AT_pure          = 0x67,
     DW_AT_recursive     = 0x68,
+    /* DWARF 4 values.  */
+    DW_AT_signature     = 0x69,
 
     DW_AT_lo_user = 0x2000,	/* Implementation-defined range start.  */
     DW_AT_hi_user = 0x3ff0,	/* Implementation-defined range end.  */
@@ -381,6 +390,7 @@ enum dwarf_attribute
     DW_AT_body_begin = 0x2105,
     DW_AT_body_end   = 0x2106,
     DW_AT_GNU_vector = 0x2107,
+    DW_AT_GNU_odr_signature = 0x210f,
     /* VMS extensions.  */
     DW_AT_VMS_rtnbeg_pd_address = 0x2201,
     /* UPC extension.  */


             reply	other threads:[~2009-07-16 20:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-16 21:19 Doug Evans [this message]
2009-07-20 23:57 ` Doug Evans
2009-07-21  1:33 ` Ben Elliston
2009-07-21  1:35   ` Cary Coutant
     [not found] <20090716205428.8CCBB846E6__41074.7728696608$1247777706$gmane$org@localhost>
2009-07-17  0:02 ` Tom Tromey
2009-07-17  7:27   ` Doug Evans

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090716205428.8CCBB846E6@localhost \
    --to=dje@google.com \
    --cc=binutils@sourceware.org \
    --cc=ccoutant@google.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox