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/sys_linux_arm.s | |
| 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/sys_linux_arm.s')
| -rw-r--r-- | src/pkg/runtime/sys_linux_arm.s | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/runtime/sys_linux_arm.s b/src/pkg/runtime/sys_linux_arm.s index 8bae2933f7..e3994bccaa 100644 --- a/src/pkg/runtime/sys_linux_arm.s +++ b/src/pkg/runtime/sys_linux_arm.s @@ -92,11 +92,11 @@ TEXT runtime·exit1(SB),7,$-4 MOVW $1003, R1 MOVW R0, (R1) // fail hard -TEXT runtime·raisesigpipe(SB),7,$-4 +TEXT runtime·raise(SB),7,$-4 MOVW $SYS_gettid, R7 SWI $0 // arg 1 tid already in R0 from gettid - MOVW $13, R1 // arg 2 SIGPIPE + MOVW sig+0(FP), R1 // arg 2 - signal MOVW $SYS_tkill, R7 SWI $0 RET |
