mirror of
https://github.com/golang/go
synced 2024-11-25 04:17:57 -07:00
delete incorrect offset print
SVN=123857
This commit is contained in:
parent
1a2421e406
commit
85785fe577
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user