]> sourceware.org Git - libabigail.git/commit
Bug 21630 - A this pointer DIE can be const
authorDodji Seketeli <dodji@redhat.com>
Mon, 26 Jun 2017 12:06:48 +0000 (14:06 +0200)
committerDodji Seketeli <dodji@redhat.com>
Tue, 4 Jul 2017 14:45:31 +0000 (16:45 +0200)
commit9c7585c700564370b6b8c7f1af0994bf9dec50d5
tree23462b91ba3ce90289f4e5aeb50d133f430fe189
parent98139caf680f16d8888fbdfc87e32682ed219293
Bug 21630 - A this pointer DIE can be const

From what I have usually seen emitted by GCC, a "this pointer" is
represented by a DW_TAG_pointer_type.  If the "this pointer" is for a
const method, then it points to a const class type DIE.

But in, in this problem report, I am seeing a "this pointer"
represented by a DW_TAG_const_type that points to a
DW_TAG_pointer_type, which is itself points to a class type DIE.

The code of die_this_pointer_is_const needs to be adjusted so that it
doesn't expect only a DW_TAG_pointer_type.

This is what this patch does.

* src/abg-dwarf-reader.cc (die_this_pointer_is_const): If the DIE
is not a DW_TAG_pointer_type then don't crash.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
src/abg-dwarf-reader.cc
This page took 0.030549 seconds and 5 git commands to generate.