diff options
| author | Russ Cox <rsc@golang.org> | 2013-03-15 01:11:03 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2013-03-15 01:11:03 -0400 |
| commit | 5146a93e72e870b06150c5419e1b83056ecc697b (patch) | |
| tree | 8a482053149a8dc5814a9136966a3dd0584f7ef9 /src/pkg/runtime/runtime.h | |
| parent | f6a952599e2e9d75b50d1b1252397325111b1a87 (diff) | |
| download | go-5146a93e72e870b06150c5419e1b83056ecc697b.tar.xz | |
runtime: accept GOTRACEBACK=crash to mean 'crash after panic'
This provides a way to generate core dumps when people need them.
The settings are:
GOTRACEBACK=0 no traceback on panic, just exit
GOTRACEBACK=1 default - traceback on panic, then exit
GOTRACEBACK=2 traceback including runtime frames on panic, then exit
GOTRACEBACK=crash traceback including runtime frames on panic, then crash
Fixes #3257.
R=golang-dev, devon.odell, r, daniel.morsing, ality
CC=golang-dev
https://golang.org/cl/7666044
Diffstat (limited to 'src/pkg/runtime/runtime.h')
| -rw-r--r-- | src/pkg/runtime/runtime.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h index e0da57bb0a..9828a9c558 100644 --- a/src/pkg/runtime/runtime.h +++ b/src/pkg/runtime/runtime.h @@ -699,7 +699,7 @@ String runtime·gostringw(uint16*); void runtime·initsig(void); void runtime·sigenable(uint32 sig); void runtime·sigdisable(uint32 sig); -int32 runtime·gotraceback(void); +int32 runtime·gotraceback(bool *crash); void runtime·goroutineheader(G*); void runtime·traceback(uint8 *pc, uint8 *sp, uint8 *lr, G* gp); void runtime·tracebackothers(G*); @@ -793,6 +793,7 @@ G* runtime·netpoll(bool); void runtime·netpollinit(void); int32 runtime·netpollopen(int32, PollDesc*); void runtime·netpollready(G**, PollDesc*, int32); +void runtime·crash(void); #pragma varargck argpos runtime·printf 1 #pragma varargck type "d" int32 |
