]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Add DWARF attributes DW_AT_GNU_vector and DW_AT_GNU_template_name.
authorRoland McGrath <roland@redhat.com>
Tue, 5 Jan 2010 21:36:07 +0000 (13:36 -0800)
committerRoland McGrath <roland@redhat.com>
Tue, 5 Jan 2010 21:36:07 +0000 (13:36 -0800)
libdw/ChangeLog
libdw/dwarf.h
src/ChangeLog
src/readelf.c

index 9506daeadafd24ce8c4a91915d1bcd332e3faf3a..c5aacc63227c5cc2c9cacb1ef20eca3730a771ee 100644 (file)
@@ -1,3 +1,7 @@
+2010-01-05  Roland McGrath  <roland@redhat.com>
+
+       * dwarf.h: Add DW_AT_GNU_vector, DW_AT_GNU_template_name.
+
 2009-11-21  Roland McGrath  <roland@redhat.com>
 
        * dwarf_getlocation.c (check_constant_offset): Return 1 for all
index 196ef85edf6c7898ad393668e428f603021e890f..c2bf11a45594cccd53e235febcc3057785795128 100644 (file)
@@ -1,5 +1,5 @@
 /* This file defines standard DWARF types, structures, and macros.
-   Copyright (C) 2000,2002,2005,2006,2007,2008,2009 Red Hat, Inc.
+   Copyright (C) 2000-2010 Red Hat, Inc.
    This file is part of Red Hat elfutils.
 
    Red Hat elfutils is free software; you can redistribute it and/or modify
@@ -228,6 +228,7 @@ enum
     DW_AT_const_expr = 0x6c,
 
     DW_AT_lo_user = 0x2000,
+
     DW_AT_MIPS_fde = 0x2001,
     DW_AT_MIPS_loop_begin = 0x2002,
     DW_AT_MIPS_tail_loop_begin = 0x2003,
@@ -245,12 +246,17 @@ enum
     DW_AT_MIPS_allocatable_dopetype = 0x200f,
     DW_AT_MIPS_assumed_shape_dopetype = 0x2010,
     DW_AT_MIPS_assumed_size = 0x2011,
+
+    /* GNU extensions.  */
     DW_AT_sf_names = 0x2101,
     DW_AT_src_info = 0x2102,
     DW_AT_mac_info = 0x2103,
     DW_AT_src_coords = 0x2104,
     DW_AT_body_begin = 0x2105,
     DW_AT_body_end = 0x2106,
+    DW_AT_GNU_vector = 0x2107,
+    DW_AT_GNU_template_name = 0x2110,
+
     DW_AT_hi_user = 0x3fff
   };
 
index 2e48a4e3008f5c920d2bd1f8a83928cdcc50707d..91a6450a137f6c863f835f31e7e79814ce7f6522 100644 (file)
@@ -1,3 +1,8 @@
+2010-01-05  Roland McGrath  <roland@redhat.com>
+
+       * readelf.c (dwarf_attr_string): Match DW_AT_GNU_vector and
+       DW_AT_GNU_template_name.
+
 2010-01-04  Roland McGrath  <roland@redhat.com>
 
        * readelf.c (handle_notes_data): Grab NT_AUXV only for name "CORE".
index 2c263ec7af21c5f577edd9343b2ceae1836dfc16..19792acbf6578c38df3b22a01c3c7adde2766044 100644 (file)
@@ -3446,6 +3446,14 @@ dwarf_attr_string (unsigned int attrnum)
        result = "body_end";
        break;
 
+      case DW_AT_GNU_vector:
+       result = "GNU_vector";
+       break;
+
+      case DW_AT_GNU_template_name:
+       result = "GNU_template_name";
+       break;
+
       default:
        if (attrnum < DW_AT_lo_user)
          snprintf (buf, sizeof buf, gettext ("unknown attribute %hx"),