pike.git / src / error.c

version» Context lines:

pike.git/src/error.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: error.c,v 1.97 2002/12/16 12:15:28 mast Exp $ + || $Id: error.c,v 1.98 2003/07/16 11:48:35 mast Exp $   */      #define NO_PIKE_SHORTHAND   #include "global.h"   #include "svalue.h"   #include "pike_macros.h"   #include "pike_error.h"   #include "interpret.h"   #include "stralloc.h"   #include "builtin_functions.h"   #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.97 2002/12/16 12:15:28 mast Exp $"); + RCSID("$Id: error.c,v 1.98 2003/07/16 11:48:35 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:305: Inside #if defined(PIKE_DEBUG)
  #ifdef PIKE_DEBUG    if (d_flag) {    fprintf(stderr,"%s\n",(char *)msg);    dump_backlog();    }   #endif    fprintf(stderr,"%s\n",(char *)msg);   #ifdef PIKE_DEBUG    {    char *s; +  struct svalue thrown;    fprintf(stderr,"Attempting to dump raw error: (may fail)\n");    init_buf(); -  describe_svalue(&throw_value,0,0); +  move_svalue (&thrown, &throw_value); +  throw_value.type = PIKE_T_INT; +  describe_svalue(&thrown,0,0); +  free_svalue (&thrown);    s=simple_free_buf();    fprintf(stderr,"%s\n",s);    free(s);    }   #endif    exit(1);   }      #ifdef __NT__   /* Wrapper around abort() to avoid interactive requesters on NT. */