debug why runtime.Basic doesn't work
This commit is contained in:
@@ -30,8 +30,8 @@ func Alloc(size uintptr) unsafe.Pointer {
|
||||
|
||||
// TracePanic prints panic message.
|
||||
func TracePanic(v Interface) {
|
||||
c.Printf(c.Str("Panic(%p)\n"), v.tab._type)
|
||||
kind := abi.Kind(v.tab._type.Kind_)
|
||||
c.Printf(c.Str("Panic(%d)\n"), kind)
|
||||
switch {
|
||||
case kind == abi.String:
|
||||
s := (*String)(v.data)
|
||||
|
||||
Reference in New Issue
Block a user