This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
[patch] generic includes cleanup
- From: "Martin M. Hunt" <hunt at redhat dot com>
- To: Insight Mailing List <insight at sources dot redhat dot com>
- Date: Thu, 7 Feb 2002 14:00:18 -0800
- Subject: [patch] generic includes cleanup
- Organization: Red Hat Inc
Some minor cleanup of includes. Checked in as obvious.
--
Martin Hunt
GDB Engineer
Red Hat, Inc.
2002-02-07 Martin M. Hunt <hunt@redhat.com>
* generic/gdbtk.c, generic/gdbtk-bp.c, generic/gdbtk-cmds.c,
generic/gdbtk-hooks.c, generic/gdbtk-stack.c: Cleanup includes.
Index: gdbtk-bp.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-bp.c,v
retrieving revision 1.15
diff -u -p -r1.15 gdbtk-bp.c
--- gdbtk-bp.c 2002/02/07 05:05:06 1.15
+++ gdbtk-bp.c 2002/02/07 21:53:22
@@ -24,7 +24,6 @@
#include "linespec.h"
#include "breakpoint.h"
#include "tracepoint.h"
-#include "gdb-events.h"
#include <tcl.h>
#include "gdbtk.h"
Index: gdbtk-cmds.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-cmds.c,v
retrieving revision 1.50
diff -u -p -r1.50 gdbtk-cmds.c
--- gdbtk-cmds.c 2002/02/07 05:05:06 1.50
+++ gdbtk-cmds.c 2002/02/07 21:53:23
@@ -24,25 +24,20 @@
Boston, MA 02111-1307, USA. */
#include "defs.h"
-#include "symtab.h"
#include "inferior.h"
-#include "command.h"
#include "source.h"
-#include "bfd.h"
#include "symfile.h"
#include "objfiles.h"
-#include "target.h"
#include "gdbcore.h"
#include "demangle.h"
#include "linespec.h"
#include "tui/tui-file.h"
+#include "top.h"
+#include "annotate.h"
-#include <sys/stat.h>
-
-#include <tcl.h>
-#include <tk.h>
-#include <itcl.h>
#include <tix.h>
+#include <itcl.h>
+
#include "guitcl.h"
#include "gdbtk.h"
#include "gdbtk-wrapper.h"
@@ -50,15 +45,13 @@
#include <signal.h>
#include <fcntl.h>
-#include "top.h"
#include <sys/ioctl.h>
+#include <sys/time.h>
+#include <sys/stat.h>
+
#include "gdb_string.h"
#include "dis-asm.h"
-#include <stdio.h>
#include "gdbcmd.h"
-
-#include "annotate.h"
-#include <sys/time.h>
/* Various globals we reference. */
extern char *source_path;
Index: gdbtk-hooks.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-hooks.c,v
retrieving revision 1.19
diff -u -p -r1.19 gdbtk-hooks.c
--- gdbtk-hooks.c 2002/02/07 05:05:06 1.19
+++ gdbtk-hooks.c 2002/02/07 21:53:24
@@ -22,44 +22,35 @@
Boston, MA 02111-1307, USA. */
#include "defs.h"
-#include "symtab.h"
#include "inferior.h"
-#include "command.h"
-#include "bfd.h"
#include "symfile.h"
#include "objfiles.h"
-#include "target.h"
#include "gdbcore.h"
#include "tracepoint.h"
#include "demangle.h"
#include "gdb-events.h"
+#include "top.h"
+#include "annotate.h"
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif
-#include <sys/stat.h>
-
-#include <tcl.h>
-#include <tk.h>
#include <itcl.h>
#include <tix.h>
#include "guitcl.h"
#include "gdbtk.h"
-#include <stdarg.h>
#include <signal.h>
#include <fcntl.h>
-#include "top.h"
#include <sys/ioctl.h>
+#include <sys/time.h>
+
#include "gdb_string.h"
#include "dis-asm.h"
-#include <stdio.h>
#include "gdbcmd.h"
-#include "annotate.h"
-#include <sys/time.h>
volatile int in_fputs = 0;
Index: gdbtk-stack.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-stack.c,v
retrieving revision 1.6
diff -u -p -r1.6 gdbtk-stack.c
--- gdbtk-stack.c 2002/02/07 05:05:06 1.6
+++ gdbtk-stack.c 2002/02/07 21:53:24
@@ -19,9 +19,6 @@
Boston, MA 02111-1307, USA. */
#include "defs.h"
-#include "symtab.h"
-#include "frame.h"
-#include "value.h"
#include "target.h"
#include "breakpoint.h"
#include "linespec.h"
Index: gdbtk.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk.c,v
retrieving revision 1.25
diff -u -p -r1.25 gdbtk.c
--- gdbtk.c 2002/02/07 05:05:06 1.25
+++ gdbtk.c 2002/02/07 21:53:24
@@ -22,45 +22,37 @@
Boston, MA 02111-1307, USA. */
#include "defs.h"
-#include "symtab.h"
#include "inferior.h"
-#include "command.h"
-#include "bfd.h"
#include "symfile.h"
#include "objfiles.h"
-#include "target.h"
#include "gdbcore.h"
#include "tracepoint.h"
#include "demangle.h"
#include "version.h"
#include "cli-out.h"
+#include "top.h"
+#include "annotate.h"
#if defined(_WIN32) || defined(__CYGWIN__)
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif
-#include <sys/stat.h>
-
-#include <tcl.h>
-#include <tk.h>
-#include <itcl.h>
#include <tix.h>
+#include <itcl.h>
#include <itk.h>
#include "guitcl.h"
#include "gdbtk.h"
-#include <signal.h>
#include <fcntl.h>
-#include "top.h"
+#include <sys/stat.h>
#include <sys/ioctl.h>
+#include <sys/time.h>
+#include <signal.h>
+
#include "gdb_string.h"
#include "dis-asm.h"
-#include <stdio.h>
#include "gdbcmd.h"
-
-#include "annotate.h"
-#include <sys/time.h>
#ifdef __CYGWIN32__
#include <sys/cygwin.h> /* for cygwin32_attach_handle_to_fd */