This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] Add extern of output_command to utils.h
- From: Hui Zhu <teawater at gmail dot com>
- To: Tom Tromey <tromey at redhat dot com>, gdb-patches ml <gdb-patches at sourceware dot org>
- Date: Thu, 20 Dec 2012 20:21:03 +0800
- Subject: [PATCH] Add extern of output_command to utils.h
Hi Tom,
According to you comments for target ctf patch, I make a patch to add
extern of output_command to utils.h.
Please help me review it.
Thanks,
Hui
2012-12-20 Hui Zhu <hui_zhu@mentor.com>
* tracepoint.c: Remove extern of function output_command.
* utils.h (output_command): New extern.
--- a/tracepoint.c
+++ b/tracepoint.c
@@ -93,11 +93,6 @@ extern void (*deprecated_readline_begin_
extern char *(*deprecated_readline_hook) (char *);
extern void (*deprecated_readline_end_hook) (void);
-/* GDB commands implemented in other modules:
- */
-
-extern void output_command (char *, int);
-
/*
Tracepoint.c:
--- a/utils.h
+++ b/utils.h
@@ -378,4 +378,6 @@ extern int myread (int, char *, int);
extern ULONGEST align_up (ULONGEST v, int n);
extern ULONGEST align_down (ULONGEST v, int n);
+extern void output_command (char *, int);
+
#endif /* UTILS_H */