]> Cypherpunks repositories - gostls13.git/commitdiff
delete incorrect offset print
authorRob Pike <r@golang.org>
Fri, 20 Jun 2008 17:55:53 +0000 (10:55 -0700)
committerRob Pike <r@golang.org>
Fri, 20 Jun 2008 17:55:53 +0000 (10:55 -0700)
SVN=123857

src/runtime/runtime.c

index f26dacf22f05531b026eaaf29412b96c2d1ee95e..0e62dbdb0adbbb6da3e7d8912a2f989fb7f47c2a 100644 (file)
@@ -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;
                        }