This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
[PATCH 1/2] Initialize type_offset of fake_cu
- From: Ulf Hermann <ulf dot hermann at qt dot io>
- To: <elfutils-devel at sourceware dot org>
- Date: Tue, 9 May 2017 18:28:04 +0200
- Subject: [PATCH 1/2] Initialize type_offset of fake_cu
- Authentication-results: sourceware.org; auth=none
- Authentication-results: sourceware.org; dkim=none (message not signed) header.d=none;sourceware.org; dmarc=none action=none header.from=qt.io;
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qtcompany.onmicrosoft.com; s=selector1-qt-io; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=fI8svlSh2J2Zn6tCPgsOgEMrb4gpAZPih8FHx7JGDb0=; b=pQ4qtapte7GsPASdapDZzj0JN9DyFf4LNNR8B9W2PLgBvKcK8LVSUIGZ68erqgNoUxAl/pAxr7GtLQZ69GW0bsW4LRMDfmpWnAyc0vgZ2qs7s0t/lpPJtfGhaO2WSgVRMcCUqpP2DTSpEYS1gi2ED4a5kxiL9RBYEwqjZn/RoCo=
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
Signed-off-by: Ulf Hermann <ulf.hermann@qt.io>
---
libdw/ChangeLog | 4 ++++
libdw/dwarf_getmacros.c | 1 +
2 files changed, 5 insertions(+)
diff --git a/libdw/ChangeLog b/libdw/ChangeLog
index eda35c5..665c232 100644
--- a/libdw/ChangeLog
+++ b/libdw/ChangeLog
@@ -1,3 +1,7 @@
+2017-05-09 Ulf Hermann <ulf.hermann@qt.io>
+
+ * dwarf_getmacros.c: Initialize type_offset of the fake CU.
+
2017-02-28 Ulf Hermann <ulf.hermann@qt.io>
* Makefile.am: Use the predefined common library names rather than
diff --git a/libdw/dwarf_getmacros.c b/libdw/dwarf_getmacros.c
index eb50508..9e2a4a1 100644
--- a/libdw/dwarf_getmacros.c
+++ b/libdw/dwarf_getmacros.c
@@ -361,6 +361,7 @@ read_macros (Dwarf *dbg, int sec_index,
.offset_size = table->is_64bit ? 8 : 4,
.startp = (void *) startp + offset,
.endp = (void *) endp,
+ .type_offset = 0,
};
Dwarf_Attribute *attributes;
--
2.1.4