1
0
mirror of https://github.com/golang/go synced 2024-11-20 05:04:43 -07:00

runtime: omit breakpoint during terminal panic

again.
CL 4222043 missed this case.

R=brainman, r, r2
CC=golang-dev
https://golang.org/cl/4235043
This commit is contained in:
Russ Cox 2011-02-25 15:17:34 -05:00
parent c833d2fd94
commit d1cd829405

View File

@ -64,8 +64,6 @@ runtime·dopanic(int32 unused)
runtime·lock(&deadlock);
}
runtime·panicking = 1; // so we don't dump another stack trace for breakpoint trap
runtime·breakpoint(); // so we can grab it in a debugger
runtime·exit(2);
}