From: Roland McGrath Date: Tue, 5 Jan 2010 21:36:07 +0000 (-0800) Subject: Add DWARF attributes DW_AT_GNU_vector and DW_AT_GNU_template_name. X-Git-Tag: elfutils-0.144~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=019d9fbc34f2de0f9e9f9349054d1be6d3957266;p=thirdparty%2Felfutils.git Add DWARF attributes DW_AT_GNU_vector and DW_AT_GNU_template_name. --- diff --git a/libdw/ChangeLog b/libdw/ChangeLog index 9506daead..c5aacc632 100644 --- a/libdw/ChangeLog +++ b/libdw/ChangeLog @@ -1,3 +1,7 @@ +2010-01-05 Roland McGrath + + * dwarf.h: Add DW_AT_GNU_vector, DW_AT_GNU_template_name. + 2009-11-21 Roland McGrath * dwarf_getlocation.c (check_constant_offset): Return 1 for all diff --git a/libdw/dwarf.h b/libdw/dwarf.h index 196ef85ed..c2bf11a45 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 2e48a4e30..91a6450a1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-01-05 Roland McGrath + + * readelf.c (dwarf_attr_string): Match DW_AT_GNU_vector and + DW_AT_GNU_template_name. + 2010-01-04 Roland McGrath * readelf.c (handle_notes_data): Grab NT_AUXV only for name "CORE". diff --git a/src/readelf.c b/src/readelf.c index 2c263ec7a..19792acbf 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"),