This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/20935] New: dwarf2_add_member_fn: Handling the 2nd form of DW_AT_vtable_elem_location does not work
- From: "DiablosOffens at gmx dot de" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 06 Dec 2016 09:13:18 +0000
- Subject: [Bug c++/20935] New: dwarf2_add_member_fn: Handling the 2nd form of DW_AT_vtable_elem_location does not work
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=20935
Bug ID: 20935
Summary: dwarf2_add_member_fn: Handling the 2nd form of
DW_AT_vtable_elem_location does not work
Product: gdb
Version: HEAD
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
Assignee: unassigned at sourceware dot org
Reporter: DiablosOffens at gmx dot de
Target Milestone: ---
Created attachment 9686
--> https://sourceware.org/bugzilla/attachment.cgi?id=9686&action=edit
Proposed patch
As already mentioned in Bug #17236, the blk variable should not be deleted but
passed to decode_locdesc.
If gcc will emit these locdesc in the future, this would lead to complains in
decode_locdesc and also not decode at all. So, either this variable is actually
needed here or decode_locdesc needs to be adjusted for this special case. I
would prefer the former.
I haven't found a test from the testsuite to address this.
I attach a patch to resolve this issue. Please have a look into it.
--
You are receiving this mail because:
You are on the CC list for the bug.