-
-
Save garenchan/92303bf56b224291b08b39e728a79f59 to your computer and use it in GitHub Desktop.
go-utils
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 打印traceback | |
// src/runtime/traceback.go | |
func traceback2() { | |
// Everything throw does should be recursively nosplit so it | |
// can be called even when it's unsafe to grow the stack. | |
pc := getcallerpc() | |
sp := getcallersp() | |
gp := getg() | |
traceback(pc, sp, 0, gp) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment