This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/20935] New: dwarf2_add_member_fn: Handling the 2nd form of DW_AT_vtable_elem_location does not work


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]