diff options
| author | Srinivas Pokala <Pokala.Srinivas@ibm.com> | 2022-12-14 06:31:50 +0100 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2023-01-20 05:00:12 +0000 |
| commit | 3e77efc7204407c5c8882bec42fdcaa88ef40a9b (patch) | |
| tree | 81273a001366a3c604d93788cb46df2a64693154 /src/cmd/asm | |
| parent | 5c67ebbb31a296ca1593d0229b1d51d5ac73aa6d (diff) | |
| download | go-3e77efc7204407c5c8882bec42fdcaa88ef40a9b.tar.xz | |
cmd/internal/obj/s390x, runtime: fix breakpoint in s390x
Currently runtime.Breakpoint generates SIGSEGV in s390x.
The solution to this is add new asm instruction BRRK of
type FORMAT_E for the breakpoint exception.
Fixes #52103
Change-Id: I8358a56e428849a5d28d5ade141e1d7310bee084
Reviewed-on: https://go-review.googlesource.com/c/go/+/457456
Reviewed-by: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Diffstat (limited to 'src/cmd/asm')
| -rw-r--r-- | src/cmd/asm/internal/asm/testdata/s390x.s | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/asm/internal/asm/testdata/s390x.s b/src/cmd/asm/internal/asm/testdata/s390x.s index 7c5d26be33..78ccb96fc1 100644 --- a/src/cmd/asm/internal/asm/testdata/s390x.s +++ b/src/cmd/asm/internal/asm/testdata/s390x.s @@ -410,6 +410,7 @@ TEXT main·foo(SB),DUPOK|NOSPLIT,$16-0 // TEXT main.foo(SB), DUPOK|NOSPLIT, $16- TCDB F15, $4095 // edf00fff0011 UNDEF // 00000000 + BRRK // 0001 NOPH // 0700 SYNC // 07e0 |
