From: Rob Pike Date: Fri, 20 Jun 2008 17:55:53 +0000 (-0700) Subject: delete incorrect offset print X-Git-Tag: weekly.2009-11-06~3648 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=85785fe577e94f76f6e32595c197f13600549c6a;p=gostls13.git delete incorrect offset print SVN=123857 --- diff --git a/src/runtime/runtime.c b/src/runtime/runtime.c index f26dacf22f..0e62dbdb0a 100644 --- a/src/runtime/runtime.c +++ b/src/runtime/runtime.c @@ -99,6 +99,7 @@ sys_printpc(void *p) sys_printpointer(sys_getcallerpc(p)); } +/*BUG: move traceback code to architecture-dependent runtime */ void sys_panicl(int32 lno) { @@ -145,7 +146,7 @@ sys_panicl(int32 lno) /* print pc for next frame */ prints("0x"); sys_printpointer(pc); - prints(" "); + prints("?zi\n"); /* next word down on stack is PC */ retpc = pc; /* find SP offset by stepping back through instructions to SP offset marker */ @@ -157,10 +158,6 @@ sys_panicl(int32 lno) spoff += *pc++ << 8; spoff += *pc++ << 16; name = (int8*)pc; - prints(name); - prints("+"); - sys_printint(pc-retpc); - prints("?zi\n"); sp += spoff + 8; break; }