diff options
author | Ian Lance Taylor <iant@golang.org> | 2015-07-24 16:16:39 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2015-07-27 16:58:53 +0000 |
commit | f0876a1a940b67b3f6029dfd0b6a06348792dc04 (patch) | |
tree | ffb63478297c852a1e7c55e95b204cbaa7b6f0dc /src/runtime/sys_openbsd_arm.s | |
parent | a2cf0568e853a22a50110e43d5185a096f3145c6 (diff) | |
download | go-f0876a1a940b67b3f6029dfd0b6a06348792dc04.tar.gz go-f0876a1a940b67b3f6029dfd0b6a06348792dc04.zip |
runtime: log all thread stack traces during GODEBUG=crash on Unix
This extends https://golang.org/cl/2811, which only applied to Darwin
and GNU/Linux, to all Unix systems.
Fixes #9591.
Change-Id: Iec3fb438564ba2924b15b447c0480f87c0bfd009
Reviewed-on: https://go-review.googlesource.com/12661
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/runtime/sys_openbsd_arm.s')
-rw-r--r-- | src/runtime/sys_openbsd_arm.s | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/runtime/sys_openbsd_arm.s b/src/runtime/sys_openbsd_arm.s index d231f0fdb3..ab7f2ae01f 100644 --- a/src/runtime/sys_openbsd_arm.s +++ b/src/runtime/sys_openbsd_arm.s @@ -96,6 +96,15 @@ TEXT runtime·raise(SB),NOSPLIT,$12 SWI $0 RET +TEXT runtime·raiseproc(SB),NOSPLIT,$12 + MOVW $20, R12 + SWI $0 // sys_getpid + // arg 1 - pid, already in R0 + MOVW sig+0(FP), R1 // arg 2 - signum + MOVW $37, R12 // sys_kill + SWI $0 + RET + TEXT runtime·mmap(SB),NOSPLIT,$16 MOVW addr+0(FP), R0 // arg 1 - addr MOVW len+4(FP), R1 // arg 2 - len |