+2018-12-21 Dave Murphy <davem@devkitpro.org>
+
+ * dtrace-probe.c (dtrace_static_probe_ops): Explicit zero
+ initialise.
+ * probe.c (any_static_probe_ops): Ditto.
+ * record-btrace.c (record_btrace_thread_observer_token): Ditto.
+ * stap-probe.c (stap_static_probe_ops): Ditto.
+ * tui/tui-hooks.c (tui_observers_token): Ditto.
+ * unittests/observable-selftests.c (token1, token2, token3): Ditto.
+
2018-12-19 Andrew Burgess <andrew.burgess@embecosm.com>
* gdb/dummy-frame.c (default_dummy_id): Defined new function.
/* DTrace static_probe_ops. */
-const dtrace_static_probe_ops dtrace_static_probe_ops;
+const dtrace_static_probe_ops dtrace_static_probe_ops {};
/* The following structure represents a dtrace probe. */
/* Static operations associated with a generic probe. */
-const any_static_probe_ops any_static_probe_ops;
+const any_static_probe_ops any_static_probe_ops {};
/* A helper for parse_probes that decodes a probe specification in
SEARCH_PSPACE. It appends matching SALs to RESULT. */
/* Token associated with a new-thread observer enabling branch tracing
for the new thread. */
-static const gdb::observers::token record_btrace_thread_observer_token;
+static const gdb::observers::token record_btrace_thread_observer_token {};
/* Memory access types used in set/show record btrace replay-memory-access. */
static const char replay_memory_access_read_only[] = "read-only";
/* SystemTap static_probe_ops. */
-const stap_static_probe_ops stap_static_probe_ops;
+const stap_static_probe_ops stap_static_probe_ops {};
class stap_probe : public probe
{
/* Token associated with observers registered while TUI hooks are
installed. */
-static const gdb::observers::token tui_observers_token;
+static const gdb::observers::token tui_observers_token {};
/* Attach or detach a single observer, according to ATTACH. */
attached. */
notify_check_counters (0, 0, 0);
- const gdb::observers::token token1, token2, token3;
+ const gdb::observers::token token1 {}, token2 {} , token3 {};
/* Now, attach one observer, and send a notification. */
test_notification.attach (&test_second_notification_function, token2);