Commit 0e544fa0 authored by Rob Pike's avatar Rob Pike

fix error-handling bug.

add newline after stack traces.

R=rsc
DELTA=3  (2 added, 1 deleted, 0 changed)
OCL=18945
CL=18953
parent 2a58e7d7
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment