aboutsummaryrefslogtreecommitdiff
path: root/gdb/dtrace-probe.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2015-02-26 14:03:47 +0000
committerPedro Alves <palves@redhat.com>2015-02-27 17:59:25 +0000
commitbf36a1e7df75608045be60a5d16a1df207df3464 (patch)
treee195bef10ae3726cf2380553c7cc129031468425 /gdb/dtrace-probe.c
parentad6aff7dead678cc0fa4f786fa59c6040c6fa758 (diff)
downloadgdb-bf36a1e7df75608045be60a5d16a1df207df3464.zip
gdb-bf36a1e7df75608045be60a5d16a1df207df3464.tar.gz
gdb-bf36a1e7df75608045be60a5d16a1df207df3464.tar.bz2
More redefinition errors in C++ mode
In C++, we can't forward declare objects like in C. The compiler complains about symbol redefinition. Most cases of this were fixed in e36122e9, but dtrace probes introduced a new one meanwhile. This patch fixes it the same way e36122e9 fixed the others. gdb/ 2015-02-27 Pedro Alves <palves@redhat.com> * dtrace-probe.c (dtrace_probe_ops): Make extern.
Diffstat (limited to 'gdb/dtrace-probe.c')
-rw-r--r--gdb/dtrace-probe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dtrace-probe.c b/gdb/dtrace-probe.c
index b244449..491d853 100644
--- a/gdb/dtrace-probe.c
+++ b/gdb/dtrace-probe.c
@@ -43,7 +43,7 @@
/* Forward declaration. */
-static const struct probe_ops dtrace_probe_ops;
+extern const struct probe_ops dtrace_probe_ops;
/* The following structure represents a single argument for the
probe. */
@@ -865,7 +865,7 @@ dtrace_disable_probe (struct probe *probe)
/* DTrace probe_ops. */
-static const struct probe_ops dtrace_probe_ops =
+const struct probe_ops dtrace_probe_ops =
{
dtrace_probe_is_linespec,
dtrace_get_probes,