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]

Re: [RFC] Patch for QUIT macro support


This doesn't fix the issue with QUIT, but it does get rid of
old cruft that is no longer used.

-Fred


2006-10-13  Fred Fish  <fnf@specifix.com>

	* defs.h (request_quit): Remove declaration.
	* utils.c (request_quit): Remove definition.


Index: gdb/gdb/defs.h
===================================================================
RCS file: /services/cvs/cvsroot/latest/gdb/gdb/defs.h,v
retrieving revision 1.1.1.5.2.5
diff -u -p -r1.1.1.5.2.5 defs.h
--- gdb/gdb/defs.h	13 Oct 2006 14:39:17 -0000	1.1.1.5.2.5
+++ gdb/gdb/defs.h	13 Oct 2006 14:49:32 -0000
@@ -342,8 +342,6 @@ extern int subset_compare (char *, char 
 
 extern char *safe_strerror (int);
 
-extern void request_quit (int);
-
 #define	ALL_CLEANUPS	((struct cleanup *)0)
 
 extern void do_cleanups (struct cleanup *);
Index: gdb/gdb/utils.c
===================================================================
RCS file: /services/cvs/cvsroot/latest/gdb/gdb/utils.c,v
retrieving revision 1.1.1.5.2.2
diff -u -p -r1.1.1.5.2.2 utils.c
--- gdb/gdb/utils.c	25 Sep 2006 02:04:53 -0000	1.1.1.5.2.2
+++ gdb/gdb/utils.c	13 Oct 2006 14:49:32 -0000
@@ -906,18 +906,6 @@ quit (void)
 #endif
 }
 
-/* Control C comes here */
-void
-request_quit (int signo)
-{
-  quit_flag = 1;
-  /* Restore the signal handler.  Harmless with BSD-style signals,
-     needed for System V-style signals.  */
-  signal (signo, request_quit);
-
-  if (immediate_quit)
-    quit ();
-}
 
 /* Called when a memory allocation fails, with the number of bytes of
    memory requested in SIZE. */


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