[PATCH]: cleanup, remove #include <signal.h>

J.T. Conklin jtc@redback.com
Fri Feb 2 15:08:00 GMT 2001


I'll be committing the enclosed patch soon.

In the spirit of my earlier patch, this one removes where <signal.h>
is included when it does not need to be.  I suspect there are other
places where this is appropriate.  I'll be looking into them in due
course.

        --jtc

2001-02-02  J.T. Conklin  <jtc@redback.com>

	* ppc-bdm.c (#include <signal.h>): Removed.
	* remote-array.c: Likewise.
	* remote-bug.c: Likewise.
	* remote-e7000.c: Likewise.
	* remote-mips.c: Likewise.
	* remote-os9k.c: Likewise.
	* remote-st.c: Likewise.
	* remote-udi.c: Likewise.
	* remote-vx29k.c: Likewise.
	* remote-vx68.c: Likewise.
	* remote-vx960.c: Likewise.
	* remote-vxmips.c: Likewise.
	* remote-vxsparc.c: Likewise.

Index: ppc-bdm.c
===================================================================
RCS file: /cvs/src/src/gdb/ppc-bdm.c,v
retrieving revision 1.6
diff -c -r1.6 ppc-bdm.c
*** ppc-bdm.c	2001/02/02 19:14:32	1.6
--- ppc-bdm.c	2001/02/02 22:56:37
***************
*** 32,38 ****
  #include "objfiles.h"
  #include "gdb-stabs.h"
  #include <sys/types.h>
- #include <signal.h>
  #include "serial.h"
  #include "ocd.h"
  #include "ppc-tdep.h"
--- 32,37 ----
Index: remote-array.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-array.c,v
retrieving revision 1.9
diff -c -r1.9 remote-array.c
*** remote-array.c	2001/02/02 19:14:32	1.9
--- remote-array.c	2001/02/02 22:56:37
***************
*** 29,35 ****
  #include "gdbcore.h"
  #include "target.h"
  #include <ctype.h>
- #include <signal.h>
  #include <sys/types.h>
  #include "gdb_string.h"
  #include "command.h"
--- 29,34 ----
Index: remote-bug.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-bug.c,v
retrieving revision 1.11
diff -c -r1.11 remote-bug.c
*** remote-bug.c	2001/02/02 19:14:32	1.11
--- remote-bug.c	2001/02/02 22:56:38
***************
*** 26,32 ****
  #include "gdb_string.h"
  #include <ctype.h>
  #include <fcntl.h>
- #include <signal.h>
  #include <setjmp.h>
  #include <errno.h>
  
--- 26,31 ----
Index: remote-e7000.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-e7000.c,v
retrieving revision 1.13
diff -c -r1.13 remote-e7000.c
*** remote-e7000.c	2001/02/02 19:14:32	1.13
--- remote-e7000.c	2001/02/02 22:56:38
***************
*** 39,45 ****
  #include "target.h"
  #include "value.h"
  #include "command.h"
- #include <signal.h>
  #include "gdb_string.h"
  #include "gdbcmd.h"
  #include <sys/types.h>
--- 39,44 ----
Index: remote-mips.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-mips.c,v
retrieving revision 1.14
diff -c -r1.14 remote-mips.c
*** remote-mips.c	2001/02/02 19:14:33	1.14
--- remote-mips.c	2001/02/02 22:56:40
***************
*** 31,40 ****
  #include "remote-utils.h"
  #include "gdb_string.h"
  
- #include <signal.h>
  #include <sys/types.h>
  #include <sys/stat.h>
- 
  #include <ctype.h>
  
  /* Microsoft C's stat.h doesn't define all the POSIX file modes.  */
--- 31,38 ----
Index: remote-os9k.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-os9k.c,v
retrieving revision 1.9
diff -c -r1.9 remote-os9k.c
*** remote-os9k.c	2001/02/02 19:14:33	1.9
--- remote-os9k.c	2001/02/02 22:56:40
***************
*** 40,46 ****
  #include "defs.h"
  #include "gdbcore.h"
  #include "target.h"
- #include <signal.h>
  #include "gdb_string.h"
  #include <sys/types.h>
  #include "command.h"
--- 40,45 ----
Index: remote-st.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-st.c,v
retrieving revision 1.7
diff -c -r1.7 remote-st.c
*** remote-st.c	2001/02/02 19:14:33	1.7
--- remote-st.c	2001/02/02 22:56:40
***************
*** 38,44 ****
  #include "defs.h"
  #include "gdbcore.h"
  #include "target.h"
- #include <signal.h>
  #include "gdb_string.h"
  #include <sys/types.h>
  #include "serial.h"
--- 38,43 ----
Index: remote-udi.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-udi.c,v
retrieving revision 1.11
diff -c -r1.11 remote-udi.c
*** remote-udi.c	2001/02/02 19:14:33	1.11
--- remote-udi.c	2001/02/02 22:56:41
***************
*** 38,44 ****
  #include "value.h"
  #include <ctype.h>
  #include <fcntl.h>
- #include <signal.h>
  #include <errno.h>
  #include "gdb_string.h"
  #include "terminal.h"
--- 38,43 ----
Index: remote-vx29k.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-vx29k.c,v
retrieving revision 1.5
diff -c -r1.5 remote-vx29k.c
*** remote-vx29k.c	2001/02/02 19:14:33	1.5
--- remote-vx29k.c	2001/02/02 22:56:41
***************
*** 1,5 ****
  /* Am29k-dependent portions of the RPC protocol
-    used with a VxWorks target 
  
     Contributed by Wind River Systems.
  
--- 1,4 ----
***************
*** 34,40 ****
  
  #include "gdb_string.h"
  #include <errno.h>
- #include <signal.h>
  #include <fcntl.h>
  #include <sys/types.h>
  #include <sys/time.h>
--- 33,38 ----
Index: remote-vx68.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-vx68.c,v
retrieving revision 1.4
diff -c -r1.4 remote-vx68.c
*** remote-vx68.c	2001/02/02 19:14:33	1.4
--- remote-vx68.c	2001/02/02 22:56:41
***************
*** 34,40 ****
  
  #include "gdb_string.h"
  #include <errno.h>
- #include <signal.h>
  #include <fcntl.h>
  #include <sys/types.h>
  #include <sys/time.h>
--- 34,39 ----
Index: remote-vx960.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-vx960.c,v
retrieving revision 1.4
diff -c -r1.4 remote-vx960.c
*** remote-vx960.c	2001/02/02 19:14:33	1.4
--- remote-vx960.c	2001/02/02 22:56:41
***************
*** 34,40 ****
  
  #include "gdb_string.h"
  #include <errno.h>
- #include <signal.h>
  #include <fcntl.h>
  #include <sys/types.h>
  #include <sys/time.h>
--- 34,39 ----
Index: remote-vxmips.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-vxmips.c,v
retrieving revision 1.4
diff -c -r1.4 remote-vxmips.c
*** remote-vxmips.c	2001/02/02 19:14:33	1.4
--- remote-vxmips.c	2001/02/02 22:56:41
***************
*** 34,40 ****
  
  #include "gdb_string.h"
  #include <errno.h>
- #include <signal.h>
  #include <fcntl.h>
  #include <sys/types.h>
  #include <sys/time.h>
--- 34,39 ----
Index: remote-vxsparc.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-vxsparc.c,v
retrieving revision 1.4
diff -c -r1.4 remote-vxsparc.c
*** remote-vxsparc.c	2001/02/02 19:14:33	1.4
--- remote-vxsparc.c	2001/02/02 22:56:41
***************
*** 34,40 ****
  
  #include "gdb_string.h"
  #include <errno.h>
- #include <signal.h>
  #include <fcntl.h>
  #include <sys/types.h>
  #include <sys/time.h>
--- 34,39 ----


-- 
J.T. Conklin
RedBack Networks


More information about the Gdb-patches mailing list