]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Use dwarf_attr_integrate in various convenience functions.
authorRoland McGrath <roland@redhat.com>
Sat, 8 Aug 2009 01:26:19 +0000 (18:26 -0700)
committerRoland McGrath <roland@redhat.com>
Sat, 8 Aug 2009 01:27:36 +0000 (18:27 -0700)
NEWS
configure.ac
libdw/ChangeLog
libdw/dwarf_arrayorder.c
libdw/dwarf_bitoffset.c
libdw/dwarf_bitsize.c
libdw/dwarf_bytesize.c
libdw/dwarf_decl_file.c
libdw/dwarf_decl_line.c
libdw/dwarf_srclang.c

diff --git a/NEWS b/NEWS
index d52e253657bafdcc7d451f05bf656d5e0f7d3ce0..4d08e2b3420e5b6aa64c01a1c49f28b4f010d874 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,8 @@
+Version 0.143:
+
+libdw: Various convenience functions for individual attributes now use
+       dwarf_attr_integrate to look up indirect inherited attributes.
+
 Version 0.142:
 
 libelf: Add elf_getshdrnum alias for elf_getshnum and elf_getshdrstrndx alias
index 4d7ec1e69f84eba07d6795851543f54f1458dee8..f5a3c527ccd62326d37be6cbdbeeb49ef41565f9 100644 (file)
@@ -16,7 +16,7 @@ dnl You should have received a copy of the GNU General Public License
 dnl along with this program; if not, write to the Free Software Foundation,
 dnl Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
 dnl
-AC_INIT([Red Hat elfutils],[0.142],[http://bugzilla.redhat.com/bugzilla/],
+AC_INIT([Red Hat elfutils],[0.142.90],[http://bugzilla.redhat.com/bugzilla/],
        [elfutils])
 
 AC_CONFIG_AUX_DIR([config])
index 76663eebf8f41a833b305c99e2610182ef8c2a23..30c848974e7aa2e00f24859a2f3871e67f9a5b8f 100644 (file)
@@ -1,3 +1,13 @@
+2009-08-07  Roland McGrath  <roland@redhat.com>
+
+       * dwarf_arrayorder.c: Use dwarf_attr_integrate.
+       * dwarf_srclang.c: Likewise.
+       * dwarf_decl_file.c: Likewise.
+       * dwarf_decl_line.c (__libdw_attr_intval): Likewise.
+       * dwarf_bytesize.c: Likewise.
+       * dwarf_bitsize.c: Likewise.
+       * dwarf_bitoffset.c: Likewise.
+
 2009-07-22  Roland McGrath  <roland@redhat.com>
 
        * dwarf_frame_cfa.c: Change calling convention.
index 6d5a42d7615a2a8aff8cb971e09c53410964d896..359392420582d7eb97c4323c505679e3b54436a6 100644 (file)
@@ -1,5 +1,5 @@
 /* Return array order attribute of DIE.
-   Copyright (C) 2003, 2005 Red Hat, Inc.
+   Copyright (C) 2003, 2005, 2009 Red Hat, Inc.
    This file is part of Red Hat elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2003.
 
@@ -63,7 +63,7 @@ dwarf_arrayorder (die)
   Dwarf_Attribute attr_mem;
   Dwarf_Word value;
 
-  return INTUSE(dwarf_formudata) (INTUSE(dwarf_attr) (die, DW_AT_ordering,
-                                                     &attr_mem),
+  return INTUSE(dwarf_formudata) (INTUSE(dwarf_attr_integrate)
+                                 (die, DW_AT_ordering, &attr_mem),
                                  &value) == 0 ? (int) value : -1;
 }
index 235b7ee6236fa5b339378ab8e25ee36fdff64596..99d1071f8cd9354cbf26eddefc22241c5b410225 100644 (file)
@@ -1,5 +1,5 @@
 /* Return bit offset attribute of DIE.
-   Copyright (C) 2003, 2005 Red Hat, Inc.
+   Copyright (C) 2003, 2005, 2009 Red Hat, Inc.
    This file is part of Red Hat elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2003.
 
@@ -63,7 +63,7 @@ dwarf_bitoffset (die)
   Dwarf_Attribute attr_mem;
   Dwarf_Word value;
 
-  return INTUSE(dwarf_formudata) (INTUSE(dwarf_attr) (die, DW_AT_bit_offset,
-                                                     &attr_mem),
+  return INTUSE(dwarf_formudata) (INTUSE(dwarf_attr_integrate)
+                                 (die, DW_AT_bit_offset, &attr_mem),
                                  &value) == 0 ? (int) value : -1;
 }
index 57d7fba06d8414aaddcb90246312ed0ac019705f..7cfbc5d629bb033f79886ae7e87ad64dbfda0094 100644 (file)
@@ -1,5 +1,5 @@
 /* Return bit size attribute of DIE.
-   Copyright (C) 2003, 2005 Red Hat, Inc.
+   Copyright (C) 2003, 2005, 2009 Red Hat, Inc.
    This file is part of Red Hat elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2003.
 
@@ -63,7 +63,7 @@ dwarf_bitsize (die)
   Dwarf_Attribute attr_mem;
   Dwarf_Word value;
 
-  return INTUSE(dwarf_formudata) (INTUSE(dwarf_attr) (die, DW_AT_bit_size,
-                                                     &attr_mem),
+  return INTUSE(dwarf_formudata) (INTUSE(dwarf_attr_integrate)
+                                 (die, DW_AT_bit_size, &attr_mem),
                                  &value) == 0 ? (int) value : -1;
 }
index 635a3c169b28cd98f52c921e1041c014999b5779..536fcd5813f2f5cb9d44ae2955ad07834b47efc9 100644 (file)
@@ -1,5 +1,5 @@
 /* Return byte size attribute of DIE.
-   Copyright (C) 2003, 2005 Red Hat, Inc.
+   Copyright (C) 2003, 2005, 2009 Red Hat, Inc.
    This file is part of Red Hat elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2003.
 
@@ -63,7 +63,7 @@ dwarf_bytesize (die)
   Dwarf_Attribute attr_mem;
   Dwarf_Word value;
 
-  return INTUSE(dwarf_formudata) (INTUSE(dwarf_attr) (die, DW_AT_byte_size,
-                                                     &attr_mem),
+  return INTUSE(dwarf_formudata) (INTUSE(dwarf_attr_integrate)
+                                 (die, DW_AT_byte_size, &attr_mem),
                                  &value) == 0 ? (int) value : -1;
 }
index b1d62df2cb54eb87c3b237322279b21779beab68..b5ea27db03a7f91f52cc34159be2b8fe2a265f54 100644 (file)
@@ -1,5 +1,5 @@
 /* Return file name containing definition of the given function.
-   Copyright (C) 2005 Red Hat, Inc.
+   Copyright (C) 2005, 2009 Red Hat, Inc.
    This file is part of Red Hat elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2005.
 
@@ -63,8 +63,9 @@ dwarf_decl_file (Dwarf_Die *die)
   Dwarf_Attribute attr_mem;
   Dwarf_Sword idx = 0;
 
-  if (INTUSE(dwarf_formsdata) (INTUSE(dwarf_attr) (die, DW_AT_decl_file,
-                                                  &attr_mem), &idx) != 0)
+  if (INTUSE(dwarf_formsdata) (INTUSE(dwarf_attr_integrate)
+                              (die, DW_AT_decl_file, &attr_mem),
+                              &idx) != 0)
     return NULL;
 
   /* Zero means no source file information available.  */
index b4e3c42e9ed18b069443a07700f790947ed8d139..27abc5044084c8aad966bbde62e146c9fab3a65d 100644 (file)
@@ -1,5 +1,5 @@
 /* Get line number of beginning of given function.
-   Copyright (C) 2005 Red Hat, Inc.
+   Copyright (C) 2005, 2009 Red Hat, Inc.
    This file is part of Red Hat elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2005.
 
@@ -71,8 +71,9 @@ __libdw_attr_intval (Dwarf_Die *die, int *linep, int attval)
   Dwarf_Attribute attr_mem;
   Dwarf_Sword line;
 
-  int res = INTUSE(dwarf_formsdata) (INTUSE(dwarf_attr) (die, attval,
-                                                        &attr_mem), &line);
+  int res = INTUSE(dwarf_formsdata) (INTUSE(dwarf_attr_integrate)
+                                    (die, attval, &attr_mem),
+                                    &line);
   if (res == 0)
     {
       assert (line >= 0 && line <= INT_MAX);
index 2efa0954dd818346713b486a531cd09d41fec19e..7d0e907143a9106d69b623f316f665f06e666192 100644 (file)
@@ -1,5 +1,5 @@
 /* Return source language attribute of DIE.
-   Copyright (C) 2003, 2005 Red Hat, Inc.
+   Copyright (C) 2003, 2005, 2009 Red Hat, Inc.
    This file is part of Red Hat elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2003.
 
@@ -63,7 +63,7 @@ dwarf_srclang (die)
   Dwarf_Attribute attr_mem;
   Dwarf_Word value;
 
-  return INTUSE(dwarf_formudata) (INTUSE(dwarf_attr) (die, DW_AT_language,
-                                                     &attr_mem),
+  return INTUSE(dwarf_formudata) (INTUSE(dwarf_attr_integrate)
+                                 (die, DW_AT_language, &attr_mem),
                                  &value) == 0 ? (int) value : -1;
 }