Branch: Tag:

2001-09-28

2001-09-28 00:02:50 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

create a debuggable divide by zero instead of calling abort on NT

Rev: src/error.c:1.77

22:   #include "threads.h"   #include "gc.h"    - RCSID("$Id: error.c,v 1.76 2001/09/24 14:29:42 grubba Exp $"); + RCSID("$Id: error.c,v 1.77 2001/09/28 00:02:50 hubbe Exp $");      #undef ATTRIBUTE   #define ATTRIBUTE(X)
281: Inside #if defined(__NT__)
     #ifdef __NT__   /* Wrapper around abort() to avoid interactive requesters on NT. */ + int fnordel=0;   static void do_abort()   {    if (!d_flag && !getenv("PIKE_DEBUG")) {    exit(-6); /* -SIGIOT */    } -  abort(); +  fnordel=999/fnordel;   }   #else /* !__NT__ */   #define do_abort() abort()