changeset 20527:1f7533b3f045

(abort): New function.
author Richard M. Stallman <rms@gnu.org>
date Tue, 30 Dec 1997 19:01:13 +0000
parents ec0a8ccddd6c
children 4ffe5887d8c6
files src/emacs.c
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/emacs.c	Mon Dec 29 20:58:19 1997 +0000
+++ b/src/emacs.c	Tue Dec 30 19:01:13 1997 +0000
@@ -189,6 +189,7 @@
       SIGUSR1_in_progress = 0;
     }
 }
+
 #ifdef SIGUSR2
 int SIGUSR2_in_progress=0;
 SIGTYPE
@@ -255,6 +256,16 @@
   force_auto_save_soon ();
 }
 #endif
+
+/* We define abort, rather than using it from the library,
+   so that GDB can return from a breakpoint here.  */
+
+void
+abort ()
+{
+  kill (getpid (), SIGABRT);
+}
+
 
 /* Code for dealing with Lisp access to the Unix command line */