From: Joel Sing Date: Mon, 4 May 2020 17:16:46 +0000 (+1000) Subject: runtime: mark riscv64 goexit with TOPFRAME X-Git-Tag: go1.15beta1~238 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a1ffbe9c69c716c597f74bd281ca9166e0d54ff5;p=gostls13.git runtime: mark riscv64 goexit with TOPFRAME This corrects backtraces in gdb, making the runtime gdb tests pass on linux/riscv64. Change-Id: Icdb71450f2ab58debb1fe18455793133108971d4 Reviewed-on: https://go-review.googlesource.com/c/go/+/231998 Reviewed-by: Cherry Zhang Run-TryBot: Cherry Zhang TryBot-Result: Gobot Gobot --- diff --git a/src/runtime/asm_riscv64.s b/src/runtime/asm_riscv64.s index 31dc94ce54..d7c45a183d 100644 --- a/src/runtime/asm_riscv64.s +++ b/src/runtime/asm_riscv64.s @@ -446,7 +446,7 @@ CALLFN(·call1073741824, 1073741824) // func goexit(neverCallThisFunction) // The top-most function running on a goroutine // returns to goexit+PCQuantum. -TEXT runtime·goexit(SB),NOSPLIT|NOFRAME,$0-0 +TEXT runtime·goexit(SB),NOSPLIT|NOFRAME|TOPFRAME,$0-0 MOV ZERO, ZERO // NOP JMP runtime·goexit1(SB) // does not return // traceback from goexit1 must hit code range of goexit