This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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 */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]