Commit 85785fe5 authored by Rob Pike's avatar Rob Pike

delete incorrect offset print

SVN=123857
parent 1a2421e4
...@@ -99,6 +99,7 @@ sys_printpc(void *p) ...@@ -99,6 +99,7 @@ sys_printpc(void *p)
sys_printpointer(sys_getcallerpc(p)); sys_printpointer(sys_getcallerpc(p));
} }
/*BUG: move traceback code to architecture-dependent runtime */
void void
sys_panicl(int32 lno) sys_panicl(int32 lno)
{ {
...@@ -145,7 +146,7 @@ sys_panicl(int32 lno) ...@@ -145,7 +146,7 @@ sys_panicl(int32 lno)
/* print pc for next frame */ /* print pc for next frame */
prints("0x"); prints("0x");
sys_printpointer(pc); sys_printpointer(pc);
prints(" "); prints("?zi\n");
/* next word down on stack is PC */ /* next word down on stack is PC */
retpc = pc; retpc = pc;
/* find SP offset by stepping back through instructions to SP offset marker */ /* find SP offset by stepping back through instructions to SP offset marker */
...@@ -157,10 +158,6 @@ sys_panicl(int32 lno) ...@@ -157,10 +158,6 @@ sys_panicl(int32 lno)
spoff += *pc++ << 8; spoff += *pc++ << 8;
spoff += *pc++ << 16; spoff += *pc++ << 16;
name = (int8*)pc; name = (int8*)pc;
prints(name);
prints("+");
sys_printint(pc-retpc);
prints("?zi\n");
sp += spoff + 8; sp += spoff + 8;
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment