]> Cypherpunks repositories - gostls13.git/commit
runtime: move cgo traceback into unwinder
authorAustin Clements <austin@google.com>
Tue, 14 Feb 2023 16:50:30 +0000 (11:50 -0500)
committerAustin Clements <austin@google.com>
Fri, 10 Mar 2023 17:59:36 +0000 (17:59 +0000)
commit9872428a715a907a122ad705b5fa42f11a385664
treef769ffa0154e59a60e97b9498f05519d7c85d91b
parentc9b2da3f28195fab2dd8fc4133efd22409e9e29b
runtime: move cgo traceback into unwinder

Currently, gentraceback's loop ends with a call to tracebackCgoContext
to process cgo frames. This requires spreading various parts of the
printing and pcbuf logic across these two functions.

Clean this up by moving cgo unwinding into unwinder and then lifting
the printing and pcbuf logic from tracebackCgoContext into
gentraceback along with the other printing and pcbuf logic.

Updates #54466.

Change-Id: Ic71afaa5ae110c0ea5be9409e267e4284e36a8c9
Reviewed-on: https://go-review.googlesource.com/c/go/+/468299
Reviewed-by: Michael Pratt <mpratt@google.com>
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/runtime/traceback.go