* [COMMITTED] libdw: Call check_constant_offset with direct pointers.
@ 2019-04-28 11:00 Mark Wielaard
0 siblings, 0 replies; only message in thread
From: Mark Wielaard @ 2019-04-28 11:00 UTC (permalink / raw)
To: elfutils-devel; +Cc: Mark Wielaard
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 | 5 +++++
libdw/dwarf_getlocation.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/libdw/ChangeLog b/libdw/ChangeLog
index 22fdab3d0..bc446fe5a 100644
--- a/libdw/ChangeLog
+++ b/libdw/ChangeLog
@@ -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
diff --git a/libdw/dwarf_getlocation.c b/libdw/dwarf_getlocation.c
index ae3f511ed..6fb3ff3dd 100644
--- a/libdw/dwarf_getlocation.c
+++ b/libdw/dwarf_getlocation.c
@@ -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;
--
2.20.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-04-28 11:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-28 11:00 [COMMITTED] libdw: Call check_constant_offset with direct pointers Mark Wielaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).