]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Rename __libdw_read_udata_addr to __libdw_formptr
authorPetr Machata <pmachata@redhat.com>
Tue, 5 May 2009 12:32:39 +0000 (14:32 +0200)
committerPetr Machata <pmachata@redhat.com>
Tue, 5 May 2009 12:32:39 +0000 (14:32 +0200)
libdw/ChangeLog
libdw/dwarf_formudata.c
libdw/dwarf_getlocation.c
libdw/dwarf_getsrclines.c
libdw/dwarf_ranges.c
libdw/libdwP.h

index abea245a0b16d72ae12b84ebc53160200cf2e5e1..ec32c2d81b4bd8e118b9ea2a96fd63cf659c34ce 100644 (file)
@@ -1,6 +1,6 @@
 2009-05-05  Petr Machata  <pmachata@redhat.com>
 
-       * libdwP.h (__libdw_read_udata_addr): Declare new function.
+       * libdwP.h (__libdw_formptr): Declare new function.
        * dwarf_formudata.c: Implement it here.
        * dwarf_getlocation.c (dwarf_getlocation_addr):
        Call it instead of hand-rolled offset handling code.
index 71a5e967fc9464f3ba51dae76acd28345011b5fc..a0aa516cb9d0da7a8f3fd03acd107e43d5f4ee82 100644 (file)
@@ -56,8 +56,8 @@
 #include "libdwP.h"
 
 internal_function unsigned char *
-__libdw_read_udata_addr (Dwarf_Attribute *attr, int sec_index,
-                        int err_nodata, unsigned char **endpp)
+__libdw_formptr (Dwarf_Attribute *attr, int sec_index,
+                int err_nodata, unsigned char **endpp)
 {
   if (attr == NULL)
     return NULL;
index 3480f3ddcf7205289fa9d276e96068ee2dc3ba5e..83da7cdf2cda4bf6839f583163eb02af4073d65d 100644 (file)
@@ -379,8 +379,8 @@ dwarf_getlocation_addr (attr, address, llbufs, listlens, maxlocs)
     }
 
   unsigned char *endp, *readp
-    = __libdw_read_udata_addr (attr, IDX_debug_loc,
-                              DWARF_E_NO_LOCLIST, &endp);
+    = __libdw_formptr (attr, IDX_debug_loc,
+                      DWARF_E_NO_LOCLIST, &endp);
   if (readp == NULL)
     return -1;
 
index df510e1dd8d3a7bb4c9c565d46f796644bca1c73..bc36e8b2fe05bdd31fce68de9e5165d66555cd64 100644 (file)
@@ -136,9 +136,9 @@ dwarf_getsrclines (Dwarf_Die *cudie, Dwarf_Lines **lines, size_t *nlines)
       /* Get the offset into the .debug_line section.  NB: this call
         also checks whether the previous dwarf_attr call failed.  */
       const unsigned char *lineendp, *linep
-       = __libdw_read_udata_addr (stmt_list, IDX_debug_line,
-                                  DWARF_E_NO_DEBUG_LINE,
-                                  (unsigned char **) &lineendp);
+       = __libdw_formptr (stmt_list, IDX_debug_line,
+                          DWARF_E_NO_DEBUG_LINE,
+                          (unsigned char **) &lineendp);
       if (linep == NULL)
        goto out;
 
index 875068cb4c474b041f8323aff61e6fb4a92f8302..d49c6ab9da656e84e6d116129dcba55650d130f8 100644 (file)
@@ -139,9 +139,9 @@ dwarf_ranges (Dwarf_Die *die, ptrdiff_t offset, Dwarf_Addr *basep,
        /* No PC attributes in this DIE at all, so an empty range list.  */
        return 0;
 
-      if ((readp = __libdw_read_udata_addr (attr, IDX_debug_ranges,
-                                           DWARF_E_NO_DEBUG_RANGES,
-                                           &readendp)) == NULL)
+      if ((readp = __libdw_formptr (attr, IDX_debug_ranges,
+                                   DWARF_E_NO_DEBUG_RANGES,
+                                   &readendp)) == NULL)
        return -1;
 
       Dwarf_Word start_offset = (void *) readp - d->d_buf;
index 16b19c6f7751a357f1228bda4e85508f8fc58bbb..85b1398d7eb42b3fa0a405839f38c72cbd94d0b9 100644 (file)
@@ -511,8 +511,8 @@ __libdw_read_begin_end_pair_inc (Dwarf *dbg, int sec_index,
   internal_function;
 
 unsigned char *
-__libdw_read_udata_addr (Dwarf_Attribute *attr, int sec_index,
-                        int err_nodata, unsigned char **endpp)
+__libdw_formptr (Dwarf_Attribute *attr, int sec_index,
+                int err_nodata, unsigned char **endpp)
   internal_function;
 
 static inline int