From cb6fc99b32cd5ec80e98f0eaec18bcfffba572ca Mon Sep 17 00:00:00 2001 From: Michael Pratt Date: Thu, 28 Apr 2022 12:58:32 -0400 Subject: runtime: mark sigtramp as TOPFRAME on the rest of unix This extends CL 402190 from Linux to the rest of the Unix OSes. Marking sigtramp as TOPFRAME allows gentraceback to stop tracebacks at the end of a signal handler, since there is not much beyond sigtramp. Change-Id: I8b7f5d55d41889f59c0a79c65351b9b0b2d77717 Reviewed-on: https://go-review.googlesource.com/c/go/+/402934 Reviewed-by: Cherry Mui Reviewed-by: Austin Clements Auto-Submit: Michael Pratt TryBot-Result: Gopher Robot Run-TryBot: Michael Pratt --- src/runtime/sys_openbsd_mips64.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/runtime/sys_openbsd_mips64.s') diff --git a/src/runtime/sys_openbsd_mips64.s b/src/runtime/sys_openbsd_mips64.s index 3b18bdda7a..c2b2092053 100644 --- a/src/runtime/sys_openbsd_mips64.s +++ b/src/runtime/sys_openbsd_mips64.s @@ -237,7 +237,7 @@ TEXT runtime·sigfwd(SB),NOSPLIT,$0-32 CALL (R25) RET -TEXT runtime·sigtramp(SB),NOSPLIT,$192 +TEXT runtime·sigtramp(SB),NOSPLIT|TOPFRAME,$192 // initialize REGSB = PC&0xffffffff00000000 BGEZAL R0, 1(PC) SRLV $32, R31, RSB -- cgit v1.3-5-g9baa