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 ine36122e9
, but dtrace probes introduced a new one meanwhile. This patch fixes it the same waye36122e9
fixed the others. gdb/ 2015-02-27 Pedro Alves <palves@redhat.com> * dtrace-probe.c (dtrace_probe_ops): Make extern.
This commit is contained in:
parent
ad6aff7dea
commit
bf36a1e7df
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2015-02-27 Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
|
* dtrace-probe.c (dtrace_probe_ops): Make extern.
|
||||||
|
|
||||||
2015-02-27 Pedro Alves <palves@redhat.com>
|
2015-02-27 Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
* common/common-exceptions.h (exception_none): Declare.
|
* common/common-exceptions.h (exception_none): Declare.
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
|
|
||||||
/* Forward declaration. */
|
/* 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
|
/* The following structure represents a single argument for the
|
||||||
probe. */
|
probe. */
|
||||||
|
@ -865,7 +865,7 @@ dtrace_disable_probe (struct probe *probe)
|
||||||
|
|
||||||
/* DTrace probe_ops. */
|
/* DTrace probe_ops. */
|
||||||
|
|
||||||
static const struct probe_ops dtrace_probe_ops =
|
const struct probe_ops dtrace_probe_ops =
|
||||||
{
|
{
|
||||||
dtrace_probe_is_linespec,
|
dtrace_probe_is_linespec,
|
||||||
dtrace_get_probes,
|
dtrace_get_probes,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue