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]

[commit] remove duplicate decls of source_script, cd_command


Hi.

source_script and cd_command are declared in both top.h
and cli/cli-cmds.h.  Since they're defined in cli/cli-cmds.c
I've applied this patch.

2010-04-06  Doug Evans  <dje@google.com>

	* top.h (source_script, cd_command): Delete.
	* main.c: #include "cli/cli-cmds.h"

Index: main.c
===================================================================
RCS file: /cvs/src/src/gdb/main.c,v
retrieving revision 1.81
diff -u -p -r1.81 main.c
--- main.c	8 Mar 2010 19:20:38 -0000	1.81
+++ main.c	6 Apr 2010 16:47:23 -0000
@@ -39,8 +39,8 @@
 
 #include "interps.h"
 #include "main.h"
-
 #include "source.h"
+#include "cli/cli-cmds.h"
 
 /* If nonzero, display time usage both at startup and for each command.  */
 
Index: top.h
===================================================================
RCS file: /cvs/src/src/gdb/top.h,v
retrieving revision 1.20
diff -u -p -r1.20 top.h
--- top.h	1 Jan 2010 07:31:42 -0000	1.20
+++ top.h	6 Apr 2010 16:47:23 -0000
@@ -35,8 +35,6 @@ extern char gdbinit[];
 
 extern void print_gdb_version (struct ui_file *);
 
-extern void source_script (char *, int);
-extern void cd_command (char *, int);
 extern void read_command_file (FILE *);
 extern void init_history (void);
 extern void command_loop (void);


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