pike.git / src / error.c

version» Context lines:

pike.git/src/error.c:15:   #include "array.h"   #include "object.h"   #include "main.h"   #include "builtin_functions.h"   #include "backend.h"   #include "operators.h"   #include "module_support.h"   #include "threads.h"   #include "gc.h"    - RCSID("$Id: error.c,v 1.79 2001/11/10 19:43:51 mast Exp $"); + RCSID("$Id: error.c,v 1.80 2001/12/09 19:58:36 mast Exp $");      #undef ATTRIBUTE   #define ATTRIBUTE(X)      PMOD_EXPORT const char msg_fatal_error[] =    "%s:%d: Fatal error:\n";   #ifdef PIKE_DEBUG   PMOD_EXPORT const char msg_unsetjmp_nosync_1[] =    "UNSETJMP out of sync! (last SETJMP at %s)!\n";   PMOD_EXPORT const char msg_unsetjmp_nosync_2[] =
pike.git/src/error.c:357:    {    (void)VFPRINTF(stderr, fmt, args);    do_abort();    }       in_fatal = 1;   #ifdef PIKE_DEBUG    dump_backlog();   #endif    -  { -  extern int Pike_in_gc; +     if(Pike_in_gc) -  { +     fprintf(stderr,"Pike was in GC stage %d when this fatal occured:\n",Pike_in_gc); -  Pike_in_gc=0; -  } -  } +  Pike_in_gc = GC_PASS_DISABLED;       (void)VFPRINTF(stderr, fmt, args);       d_flag=t_flag=0;    if(Pike_sp && Pike_interpreter.evaluator_stack)    {    fprintf(stderr,"Attempting to dump backlog (may fail)...\n");    push_error("Backtrace at time of fatal:\n");    APPLY_MASTER("describe_backtrace",1);    if(Pike_sp[-1].type==PIKE_T_STRING)