MCPcopy Create free account
hub / github.com/SeeFlowerX/stackplz / ParseStack

Function ParseStack

user/event/chelper.go:15–19  ·  view source on GitHub ↗
(map_buffer string, opt *UnwindOption, ubuf *UnwindBuf)

Source from the content-addressed store, hash-verified

13var LibPath string
14
15func ParseStack(map_buffer string, opt *UnwindOption, ubuf *UnwindBuf) string {
16 stack_str := C.get_stack(C.CString(LibPath), C.CString(map_buffer), unsafe.Pointer(opt), unsafe.Pointer(&ubuf.Regs[0]), unsafe.Pointer(&ubuf.Data[0]))
17 // char* 转到 go 的 string
18 return C.GoString(stack_str)
19}
20
21func init() {
22 exec_path, err := os.Executable()

Callers 2

ParseContextStackMethod · 0.85
ParseContextStackMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected