This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Spurious warnings about construction vtables.
- From: Pedro Alves <palves at redhat dot com>
- To: Chris Dodd <cdodd at acm dot org>, gdb-patches at sourceware dot org
- Date: Tue, 18 Apr 2017 16:43:01 +0100
- Subject: Re: Spurious warnings about construction vtables.
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx03.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx03.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=palves at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 9D6A27EBAA
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 9D6A27EBAA
- References: <CAEdUDV_Z7TyMb5h6U0WXF75bv0utSYqt8AMT=hr9WLv4V7VoKA@mail.gmail.com>
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