mirror of
https://github.com/go-delve/delve.git
synced 2025-10-29 09:46:56 +08:00
committed by
GitHub
parent
65d5eb7380
commit
3de29a88f8
@ -896,11 +896,15 @@ func (v *Variable) parseG() (*G, error) {
|
|||||||
}
|
}
|
||||||
var stackhi, stacklo uint64
|
var stackhi, stacklo uint64
|
||||||
if stackVar := v.loadFieldNamed("stack"); /* +rtype stack */ stackVar != nil {
|
if stackVar := v.loadFieldNamed("stack"); /* +rtype stack */ stackVar != nil {
|
||||||
if stackhiVar := stackVar.fieldVariable("hi"); /* +rtype uintptr */ stackhiVar != nil {
|
if stackhiVar := stackVar.fieldVariable("hi"); /* +rtype uintptr */ stackhiVar != nil && stackhiVar.Value != nil {
|
||||||
stackhi, _ = constant.Uint64Val(stackhiVar.Value)
|
stackhi, _ = constant.Uint64Val(stackhiVar.Value)
|
||||||
|
} else {
|
||||||
|
unreadable = true
|
||||||
}
|
}
|
||||||
if stackloVar := stackVar.fieldVariable("lo"); /* +rtype uintptr */ stackloVar != nil {
|
if stackloVar := stackVar.fieldVariable("lo"); /* +rtype uintptr */ stackloVar != nil && stackloVar.Value != nil {
|
||||||
stacklo, _ = constant.Uint64Val(stackloVar.Value)
|
stacklo, _ = constant.Uint64Val(stackloVar.Value)
|
||||||
|
} else {
|
||||||
|
unreadable = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user