]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
libdw: Call check_constant_offset with direct pointers.
authorMark Wielaard <mark@klomp.org>
Sun, 28 Apr 2019 10:42:04 +0000 (12:42 +0200)
committerMark Wielaard <mark@klomp.org>
Sun, 28 Apr 2019 10:54:58 +0000 (12:54 +0200)
In dwarf_getlocation_addr pass the pointers to llbufs and listlens
indirectly by passing a pointer to the first array element. Simplify the
code by passing the pointers directly.

Signed-off-by: Mark Wielaard <mark@klomp.org>
libdw/ChangeLog
libdw/dwarf_getlocation.c

index 22fdab3d08237f941dfa62874a32861de8deec7d..bc446fe5a61403561bf58ad735b97ddf311a2dc4 100644 (file)
@@ -1,3 +1,8 @@
+2019-04-28  Mark Wielaard  <mark@klomp.org>
+
+       * dwarf_getlocation.c (dwarf_getlocation_addr): Call
+       check_constant_offset with llbufs and listlens directly.
+
 2019-04-27  Mark Wielaard  <mark@klomp.org>
 
        * dwarf_getlocation.c (store_implicit_value): Check dbg isn't
index ae3f511ede9f47fa4eccce4107f4f3266b5cb70f..6fb3ff3dddfe2e0db87709c55ab308ab006b20bf 100644 (file)
@@ -898,7 +898,7 @@ dwarf_getlocation_addr (Dwarf_Attribute *attr, Dwarf_Addr address,
        }
     }
 
-  int result = check_constant_offset (attr, &llbufs[0], &listlens[0]);
+  int result = check_constant_offset (attr, llbufs, listlens);
   if (result != 1)
     return result ?: 1;