Skip to content

Commit a1ffbe9

Browse files
committed
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 <[email protected]> Run-TryBot: Cherry Zhang <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent 03e6073 commit a1ffbe9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/asm_riscv64.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ CALLFN(·call1073741824, 1073741824)
446446
// func goexit(neverCallThisFunction)
447447
// The top-most function running on a goroutine
448448
// returns to goexit+PCQuantum.
449-
TEXT runtime·goexit(SB),NOSPLIT|NOFRAME,$0-0
449+
TEXT runtime·goexit(SB),NOSPLIT|NOFRAME|TOPFRAME,$0-0
450450
MOV ZERO, ZERO // NOP
451451
JMP runtime·goexit1(SB) // does not return
452452
// traceback from goexit1 must hit code range of goexit

0 commit comments

Comments
 (0)