don't print (incorrect anyway) line numbers in panic.

R=rsc
DELTA=4  (0 added, 2 deleted, 2 changed)
OCL=19757
CL=19763
This commit is contained in:
Rob Pike 2008-11-20 23:16:31 -08:00
parent 0444d697c1
commit 60db3d6d3f
2 changed files with 2 additions and 4 deletions

View File

@ -23,9 +23,7 @@ sys·panicl(int32 lno)
{
uint8 *sp;
prints("\npanic on line ");
sys·printint(lno);
prints(" ");
prints("\npanic ");
sys·printpc(&lno);
prints("\n");
sp = (uint8*)&lno;

View File

@ -146,7 +146,7 @@ BUG: should compile
=========== bugs/bug119.go
3 74256
panic on line 85 PC=xxx
panic PC=xxx
BUG: should not fail
=========== bugs/bug120.go