This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[COMMIT] Trim includes in inf-ptrace.c
- From: Mark Kettenis <kettenis at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 21 Nov 2004 15:20:56 +0100 (CET)
- Subject: [COMMIT] Trim includes in inf-ptrace.c
Some of these were completely unused. I took the liberty to
reorganize the includes a bit, and a fix a comment.
Committed,
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
Reorder includes a bit. Fix comment.
* Makefile.in (inf-ptrace.o): Update dependencies.
Index: inf-ptrace.c
===================================================================
RCS file: /cvs/src/src/gdb/inf-ptrace.c,v
retrieving revision 1.13
diff -u -p -r1.13 inf-ptrace.c
--- inf-ptrace.c 20 Nov 2004 17:03:38 -0000 1.13
+++ inf-ptrace.c 21 Nov 2004 13:44:06 -0000
@@ -1,4 +1,4 @@
-/* Low level Unix child interface to ptrace, for GDB when running under Unix.
+/* Low-level child interface to ptrace.
Copyright 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996,
1998, 1999, 2000, 2001, 2002, 2004 Free Software Foundation, Inc.
@@ -21,21 +21,20 @@
Boston, MA 02111-1307, USA. */
#include "defs.h"
-#include "observer.h"
-#include "gdb_ptrace.h"
-#include "inflow.h"
-#include "inferior.h"
-#include "regcache.h"
#include "command.h"
+#include "inferior.h"
+#include "inflow.h"
#include "gdbcore.h"
-#include "inf-child.h"
-#include "gdbcmd.h"
-#include "gdb_string.h"
+#include "observer.h"
+#include "gdb_string.h"
+#include "gdb_ptrace.h"
#include "gdb_wait.h"
#include <signal.h>
-/* HACK: Save the ptrace ops returned by ptrace_target. */
+#include "inf-child.h"
+
+/* HACK: Save the ptrace ops returned by inf_ptrace_target. */
static struct target_ops *ptrace_ops_hack;
static void
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.671
diff -u -p -r1.671 Makefile.in
--- Makefile.in 20 Nov 2004 17:23:56 -0000 1.671
+++ Makefile.in 21 Nov 2004 13:44:10 -0000
@@ -2082,9 +2082,9 @@ inf-loop.o: inf-loop.c $(defs_h) $(infer
inflow.o: inflow.c $(defs_h) $(frame_h) $(inferior_h) $(command_h) \
$(serial_h) $(terminal_h) $(target_h) $(gdbthread_h) $(gdb_string_h) \
$(inflow_h)
-inf-ptrace.o: inf-ptrace.c $(defs_h) $(observer_h) $(gdb_ptrace_h) \
- $(inflow_h) $(inferior_h) $(regcache_h) $(command_h) $(gdbcore_h) \
- $(inf_child_h) $(gdbcmd_h) $(gdb_string_h) $(gdb_wait_h)
+inf-ptrace.o: inf-ptrace.c $(defs_h) $(command_h) $(inferior_h) $(inflow_h) \
+ $(gdbcore_h) $(observer_h) $(gdb_string_h) $(gdb_ptrace_h) \
+ $(gdb_wait_h) $(inf_child_h)
infptrace.o: infptrace.c $(defs_h) $(command_h) $(frame_h) $(gdbcore_h) \
$(inferior_h) $(regcache_h) $(target_h) $(gdb_assert_h) \
$(gdb_wait_h) $(gdb_string_h) $(gdb_dirent_h) $(gdb_ptrace_h)