From 4702c0e5ef6ebccb2f0eda68571d003aebe95329 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 31 Mar 2009 15:45:12 -0700 Subject: more 386 runtime: remove use of _subv in vlrt.c darwin/386/signal.c darwin/386/* linux/386/* (forgotten before) can run empty program on darwin/386 now. R=r DELTA=1140 (1021 added, 114 deleted, 5 changed) OCL=26942 CL=26968 --- src/runtime/runtime.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/runtime/runtime.c') diff --git a/src/runtime/runtime.c b/src/runtime/runtime.c index 8a740f801e..25e2568c06 100644 --- a/src/runtime/runtime.c +++ b/src/runtime/runtime.c @@ -23,15 +23,18 @@ sys·panicl(int32 lno) { uint8 *sp; - prints("\npanic "); - sys·printpc(&lno); - prints("\n"); + if(panicking) { + printf("double panic\n"); + sys_Exit(3); + } + panicking++; + + printf("\npanic PC=%X [%d]\n", (uint64)(uintptr)&lno, panicking); sp = (uint8*)&lno; if(gotraceback()){ traceback(sys·getcallerpc(&lno), sp, g); tracebackothers(g); } - panicking = 1; sys·Breakpoint(); // so we can grab it in a debugger sys_Exit(2); } -- cgit v1.3