1
0
mirror of https://github.com/golang/go synced 2024-11-25 06:27:57 -07:00

delete incorrect offset print

SVN=123857
This commit is contained in:
Rob Pike 2008-06-20 10:55:53 -07:00
parent 1a2421e406
commit 85785fe577

View File

@ -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)
/* 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)
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;
} }