]> Cypherpunks repositories - gostls13.git/commitdiff
fix error-handling bug.
authorRob Pike <r@golang.org>
Tue, 11 Nov 2008 02:13:20 +0000 (18:13 -0800)
committerRob Pike <r@golang.org>
Tue, 11 Nov 2008 02:13:20 +0000 (18:13 -0800)
add newline after stack traces.

R=rsc
DELTA=3  (2 added, 1 deleted, 0 changed)
OCL=18945
CL=18953

src/cmd/prof/main.c

index 22a2605c93a66ea4403664c37a33c1591d8558b4..a4223e75a8cb2e088c400db9a7cd5964ed62aee8 100644 (file)
@@ -98,7 +98,6 @@ sample(void)
                if(get8(map, (uvlong)i, &((uvlong*)&ureg)[i/8]) < 0) {
                        if(n == 1)
                                fprint(2, "prof: can't read registers at %d: %r\n", i);
-                       ctlproc(pid, "start");
                        return 0;
                }
        }
@@ -136,6 +135,8 @@ stacktracepcsp(uvlong pc, uvlong sp)
                fprint(2, "no machdata->ctrace\n");
        else if(machdata->ctrace(map, pc, sp, 0, xptrace) <= 0)
                fprint(2, "no stack frame: pc=%#p sp=%#p\n", pc, sp);
+       else
+               print("\n");
 }
 
 void