]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: fix breakpoint in ppc64x
authorAlejandro Sáez <asm@redhat.com>
Mon, 23 May 2022 12:07:47 +0000 (12:07 +0000)
committerPaul Murphy <murp@ibm.com>
Mon, 6 Jun 2022 16:04:48 +0000 (16:04 +0000)
commit1b8ca75eaaff2985709ad61cc33c77a673c75a8c
treeed649f39a8812d53b6cfddb1d43ab9a0023bdbc6
parent9ce28b518d9a792d2e3e741bcb38fa046891906e
runtime: fix breakpoint in ppc64x

Currently runtime.Breakpoint generates a SIGSEGV in ppc64.
The solution is an unconditional trap similar to what clang and gcc do. It is documented in the section C.6 of the ABI Book 3.

Fixes #52101

Change-Id: I071d2f2679b695ef268445b04c9222bd74e1f9af
GitHub-Last-Rev: fff4e5e8ffe23bf0cef135b22abd2cc0a3838613
GitHub-Pull-Request: golang/go#52102
Reviewed-on: https://go-review.googlesource.com/c/go/+/397554
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Paul Murphy <murp@ibm.com>
Run-TryBot: Paul Murphy <murp@ibm.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/runtime/asm_ppc64x.s