X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Finterr.c;h=e4df5ec9a270368040dc1593a9b11c804c91ae18;hb=2378b4fe567a8fea78b1e4915b9497d8c18ca92f;hp=7f60ddeeee0e6bdc56412f086c7a9b8fd3d0b8a2;hpb=dfa55a883f94470267b626dae77ce7e7dfac3df6;p=sbcl.git diff --git a/src/runtime/interr.c b/src/runtime/interr.c index 7f60dde..e4df5ec 100644 --- a/src/runtime/interr.c +++ b/src/runtime/interr.c @@ -15,6 +15,7 @@ #include #include +#include #include "arch.h" #include "signal.h" @@ -24,6 +25,8 @@ #include "interr.h" #include "print.h" #include "lispregs.h" +#include "genesis/static-symbols.h" +#include "genesis/vector.h" /* the way that we shut down the system on a fatal error */ @@ -43,7 +46,7 @@ never_returns lose(char *fmt, ...) { va_list ap; - fprintf(stderr, "fatal error encountered in SBCL runtime system"); + fprintf(stderr, "fatal error encountered in SBCL pid %d",getpid()); if (fmt) { fprintf(stderr, ":\n"); va_start(ap, fmt); @@ -160,8 +163,8 @@ lispobj debug_print(lispobj string) that %primitive print is used (it's only a debugging aid anyway) we just put guarantee our safety by putting an unused buffer on the stack before doing anything else here */ - char untouched[32]; + char untouched[32]; /* GCC warns about not using this, but that's the point.. */ fprintf(stderr, "%s\n", - (char *)(((struct vector *)PTR(string))->data),untouched); + (char *)(((struct vector *)native_pointer(string))->data),untouched); return NIL; }