Spurious warnings about construction vtables.

Pedro Alves palves@redhat.com
Tue Apr 18 15:43:00 GMT 2017


Hi Chris,

Thanks for the patch.

On 04/18/2017 05:20 AM, Chris Dodd wrote:
> If you put a breakpoint in a C++ constructor, you often get a spurious
> warning about the "construction vtable for CLASS".  If you have a
> condition on the breakpoint (becuase you only want a specific call of
> the ctor and want to skip many up that point), you get a huge spew of
> these warnings.
> 
> Here's a small patch that avoids the warning when it not actually
> anything wrong happening:

Can you provide some small reproducer?
A snippet of a gdb session showing the warning in question
would help, I think.  Ideally, we'd convert it to a GDB
testsuite testcase.

Thanks,
Pedro Alves



More information about the Gdb-patches mailing list