Add constructor to stap_static_probe_ops
authorTom Tromey <tromey@adacore.com>
Thu, 19 Dec 2019 18:35:22 +0000 (11:35 -0700)
committerTom Tromey <tromey@adacore.com>
Tue, 7 Jan 2020 16:46:26 +0000 (09:46 -0700)
commit3c473fad8f153feee08dce0d79f0b1119a7be2a6
treea9b3a97678c246e5c4be60db7ecbb255530036f2
parent6b3a34ea875f5f7c01c9e2df005e27036fefa88a
Add constructor to stap_static_probe_ops

PR build/24937 concerns an error given by the clang provided by a
particular version of macOS.  In particular, it reports

    error: default initialization of an object of const type 'const
    stap_static_probe_ops' without a user-provided default constructor

Although (at least according to sources I found online) this was
resolved as a bug in the standard, it seemed simple enough to work
around this.

Given that this is a trivial build fix, I think it should go on the
gdb 9 branch as well.

2020-01-07  Tom Tromey  <tromey@adacore.com>

PR build/24937:
* stap-probe.c (class stap_static_probe_ops): Add constructor.

Change-Id: I18f180c17850f420e9b66afc67f9cb3d8dceb0b3
gdb/ChangeLog
gdb/stap-probe.c
This page took 0.024419 seconds and 4 git commands to generate.