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

Jonathan Wakely jwakely.gcc@gmail.com
Wed Aug 23 11:53:00 GMT 2017


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.



More information about the Gcc-help mailing list