GCC 7.2: Getting "warning: RTTI symbol not found for class" warnings in GDB

Paul Smith paul@mad-scientist.net
Wed Aug 23 17:46:00 GMT 2017


On Wed, 2017-08-23 at 09:05 +0100, Jonathan Wakely wrote:
> On 22 August 2017 at 23:16, Paul Smith wrote:
> > Hi all.  I'm working on upgrading my version of GCC from 6.2/binutils
> > 2.27, to GCC 7.2/binutils 2.29.  I've built GCC and binutils myself
> > locally.  I'm compiling my code with -ggdb3 -O2 if it matters.
> > 
> > Everything seems to except: when I try to use some GDB python macros
> > I've created to print details of one of my local classes I'm getting
> > warnings and cannot obtain the appropriate information:
> > 
> >   warning: RTTI symbol not found for class 'TreeVector<Pod, 2u>::Tree'
> > 
> > This same operation works fine when my code is compiled with GCC 6.2.
> > Note I've tried this with GDB 7.11 and GDB 8.0 and see the same behavior
> > for both: the only thing changing here is the version of GCC/binutils.
> > 
> > I've filed a bug about this FYI:
> > 
> > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81932
> 
> Please add a proper testcase to the bug report so we can reproduce it.

Done.  Cheers!



More information about the Gcc-help mailing list