[Patch, trivial] Fix PR 11110
Dmitry Gorbachev
gorbachev@reactos.org
Wed Dec 23 17:31:00 GMT 2009
This patch fixes a duplicate definition of deprecated_trace_find_hook
and deprecated_trace_start_stop_hook.
2009-12-23 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
PR gdb/11110
* tracepoint.h (deprecated_trace_find_hook)
(deprecated_trace_start_stop_hook): Declare extern.
* tracepoint.c (deprecated_trace_find_hook)
(deprecated_trace_start_stop_hook): Define.
--- gdb/tracepoint.c
+++ gdb/tracepoint.c
@@ -69,6 +69,10 @@
large. (400 - 31)/2 == 184 */
#define MAX_AGENT_EXPR_LEN 184
+/* A hook used to notify the UI of tracepoint operations. */
+
+void (*deprecated_trace_find_hook) (char *arg, int from_tty);
+void (*deprecated_trace_start_stop_hook) (int start, int from_tty);
extern void (*deprecated_readline_begin_hook) (char *, ...);
extern char *(*deprecated_readline_hook) (char *);
--- gdb/tracepoint.h
+++ gdb/tracepoint.h
@@ -39,8 +39,8 @@
/* A hook used to notify the UI of tracepoint operations. */
-void (*deprecated_trace_find_hook) (char *arg, int from_tty);
-void (*deprecated_trace_start_stop_hook) (int start, int from_tty);
+extern void (*deprecated_trace_find_hook) (char *arg, int from_tty);
+extern void (*deprecated_trace_start_stop_hook) (int start, int from_tty);
int get_traceframe_number (void);
void free_actions (struct breakpoint *);
More information about the Gdb-patches
mailing list