]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: mark riscv64 goexit with TOPFRAME
authorJoel Sing <joel@sing.id.au>
Mon, 4 May 2020 17:16:46 +0000 (03:16 +1000)
committerJoel Sing <joel@sing.id.au>
Mon, 4 May 2020 17:40:00 +0000 (17:40 +0000)
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 <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/runtime/asm_riscv64.s

index 31dc94ce54c8cd817db2729896bf337738541784..d7c45a183dca1cf8ae8dcce063aa8497657cbb65 100644 (file)
@@ -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