summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>2010-01-05 13:36:07 -0800
committerRoland McGrath <[email protected]>2010-01-05 13:36:07 -0800
commit019d9fbc34f2de0f9e9f9349054d1be6d3957266 (patch)
tree21868ca80d2a78e4c7a01960655277c014754442
parentec9746fe402a62c6a6c7a4e299dad733b8e440c0 (diff)
Add DWARF attributes DW_AT_GNU_vector and DW_AT_GNU_template_name.
-rw-r--r--libdw/ChangeLog4
-rw-r--r--libdw/dwarf.h8
-rw-r--r--src/ChangeLog5
-rw-r--r--src/readelf.c8
4 files changed, 24 insertions, 1 deletions
diff --git a/libdw/ChangeLog b/libdw/ChangeLog
index 9506daea..c5aacc63 100644
--- a/libdw/ChangeLog
+++ b/libdw/ChangeLog
@@ -1,3 +1,7 @@
+2010-01-05 Roland McGrath <[email protected]>
+
+ * dwarf.h: Add DW_AT_GNU_vector, DW_AT_GNU_template_name.
+
2009-11-21 Roland McGrath <[email protected]>
* dwarf_getlocation.c (check_constant_offset): Return 1 for all
diff --git a/libdw/dwarf.h b/libdw/dwarf.h
index 196ef85e..c2bf11a4 100644
--- a/libdw/dwarf.h
+++ b/libdw/dwarf.h
@@ -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
};
diff --git a/src/ChangeLog b/src/ChangeLog
index 2e48a4e3..91a6450a 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2010-01-05 Roland McGrath <[email protected]>
+
+ * readelf.c (dwarf_attr_string): Match DW_AT_GNU_vector and
+ DW_AT_GNU_template_name.
+
2010-01-04 Roland McGrath <[email protected]>
* readelf.c (handle_notes_data): Grab NT_AUXV only for name "CORE".
diff --git a/src/readelf.c b/src/readelf.c
index 2c263ec7..19792acb 100644
--- a/src/readelf.c
+++ b/src/readelf.c
@@ -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"),