This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Getting DWARF sub-program pure virtual attribute
- From: crasypantz <ihavecrazypants at hotmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 6 Oct 2016 12:07:44 -0700 (MST)
- Subject: Getting DWARF sub-program pure virtual attribute
- Authentication-results: sourceware.org; auth=none
Hello,
In using both gcc 4.8 and 5.4, both appear to always indicate a C++ class
function with DW_AT_virtuality attribute as 'DW_VIRTUALITY_virtual' (0x01)
even when the function is declared pure virtual. Nor is there ever presenve
of a 'DW_AT_pure' attribute. In fact, I can't see any differentiation
between sub-program attributes of either virtual or pure virtual functions,
looking to me as there is no way to differentiate from the DWARF data alone.
Is this a bug? Am I missing something? Documentation for DWARF 2 section 2.8
and DWARFs 3 & 4 section 2.10 all state, "C++ provides for virtual and pure
virtual structure or class member functions and for virtual base classes"
when describing the virtuality attribute.
Any help is appreciated. Thanks.
--
View this message in context: http://gcc.1065356.n8.nabble.com/Getting-DWARF-sub-program-pure-virtual-attribute-tp1307710.html
Sent from the gcc - Help mailing list archive at Nabble.com.