This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Add constructor to stap_static_probe_ops
- From: Tom Tromey <tromey at adacore dot com>
- To: Tom Tromey <tromey at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 07 Jan 2020 09:44:22 -0700
- Subject: Re: [PATCH] Add constructor to stap_static_probe_ops
- References: <20191219184029.13172-1-tromey@adacore.com>
>>>>> "Tom" == Tom Tromey <tromey@adacore.com> writes:
Tom> PR build/24937 concerns an error given by the clang provided by a
Tom> particular version of macOS. In particular, it reports
Tom> error: default initialization of an object of const type 'const
Tom> stap_static_probe_ops' without a user-provided default constructor
Tom> Although (at least according to sources I found online) this was
Tom> resolved as a bug in the standard, it seemed simple enough to work
Tom> around this.
Tom> Given that this is a trivial build fix, I think it should go on the
Tom> gdb 9 branch as well.
Tom> gdb/ChangeLog
Tom> 2019-12-19 Tom Tromey <tromey@adacore.com>
Tom> PR build/24937:
Tom> * stap-probe.c (class stap_static_probe_ops): Add constructor.
I'm checking this in now.
Tom