fix: symbol not found when building in baremental environment
This commit is contained in:
40
runtime/internal/clite/debug/debug_baremental.go
Normal file
40
runtime/internal/clite/debug/debug_baremental.go
Normal file
@@ -0,0 +1,40 @@
|
||||
//go:build baremental
|
||||
|
||||
package debug
|
||||
|
||||
import (
|
||||
"unsafe"
|
||||
|
||||
c "github.com/goplus/llgo/runtime/internal/clite"
|
||||
)
|
||||
|
||||
type Info struct {
|
||||
Fname *c.Char
|
||||
Fbase c.Pointer
|
||||
Sname *c.Char
|
||||
Saddr c.Pointer
|
||||
}
|
||||
|
||||
func Address() unsafe.Pointer {
|
||||
panic("not implemented")
|
||||
}
|
||||
|
||||
func Addrinfo(addr unsafe.Pointer, info *Info) c.Int {
|
||||
panic("not implemented")
|
||||
}
|
||||
|
||||
type Frame struct {
|
||||
PC uintptr
|
||||
Offset uintptr
|
||||
SP unsafe.Pointer
|
||||
Name string
|
||||
}
|
||||
|
||||
func StackTrace(skip int, fn func(fr *Frame) bool) {
|
||||
panic("not implemented")
|
||||
}
|
||||
|
||||
func PrintStack(skip int) {
|
||||
panic("not implemented")
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user