* [PATCH] readelf: Use correct listptr when looking up next loc for locview attr.
@ 2018-05-30 10:05 Mark Wielaard
2018-05-31 19:20 ` Mark Wielaard
0 siblings, 1 reply; 2+ messages in thread
From: Mark Wielaard @ 2018-05-30 10:05 UTC (permalink / raw)
To: elfutils-devel; +Cc: Mark Wielaard
We were using loclistsptr instead of locsptr in print_debug_loc_section.
https://sourceware.org/bugzilla/show_bug.cgi?id=23247
Signed-off-by: Mark Wielaard <mark@klomp.org>
---
src/ChangeLog | 5 +++++
src/readelf.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/ChangeLog b/src/ChangeLog
index f424fb7..7ae15bb 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2018-05-30 Mark Wielaard <mark@klomp.org>
+
+ * readelf.c (print_debug_loc_section): Use correct listptr for
+ locview attribute.
+
2018-05-29 Mark Wielaard <mark@klomp.org>
* readelf.c (print_debug_loc_section): Handle GNU DebugFission list
diff --git a/src/readelf.c b/src/readelf.c
index 2ccbea5..6f2f637 100644
--- a/src/readelf.c
+++ b/src/readelf.c
@@ -9244,7 +9244,7 @@ print_debug_loc_section (Dwfl_Module *dwflmod,
if (attr == DW_AT_GNU_locviews)
{
- Dwarf_Off next_off = next_listptr_offset (&known_loclistsptr,
+ Dwarf_Off next_off = next_listptr_offset (&known_locsptr,
listptr_idx);
const unsigned char *locp = readp;
const unsigned char *locendp;
--
1.8.3.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] readelf: Use correct listptr when looking up next loc for locview attr.
2018-05-30 10:05 [PATCH] readelf: Use correct listptr when looking up next loc for locview attr Mark Wielaard
@ 2018-05-31 19:20 ` Mark Wielaard
0 siblings, 0 replies; 2+ messages in thread
From: Mark Wielaard @ 2018-05-31 19:20 UTC (permalink / raw)
To: elfutils-devel
On Wed, May 30, 2018 at 12:04:48PM +0200, Mark Wielaard wrote:
> We were using loclistsptr instead of locsptr in print_debug_loc_section.
>
> https://sourceware.org/bugzilla/show_bug.cgi?id=23247
Pushed to master.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-05-31 19:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-30 10:05 [PATCH] readelf: Use correct listptr when looking up next loc for locview attr Mark Wielaard
2018-05-31 19:20 ` 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).