From 3e77efc7204407c5c8882bec42fdcaa88ef40a9b Mon Sep 17 00:00:00 2001 From: Srinivas Pokala Date: Wed, 14 Dec 2022 06:31:50 +0100 Subject: 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 TryBot-Result: Gopher Robot Reviewed-by: Cherry Mui Run-TryBot: Keith Randall Reviewed-by: Keith Randall --- src/cmd/asm/internal/asm/testdata/s390x.s | 1 + 1 file changed, 1 insertion(+) (limited to 'src/cmd/asm') 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 -- cgit v1.3-5-g9baa