1
0
mirror of https://github.com/golang/go synced 2024-11-12 09:50:21 -07:00

fix error-handling bug.

add newline after stack traces.

R=rsc
DELTA=3  (2 added, 1 deleted, 0 changed)
OCL=18945
CL=18953
This commit is contained in:
Rob Pike 2008-11-10 18:13:20 -08:00
parent 2a58e7d7a0
commit 0e544fa0e3

View 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