提交 53908019 编写于 作者: A Alessandro Arzilli 提交者: Derek Parker

pkg/proc: remove unused types (#850)

type M struct was never used (as far as I know).
type VariableEval interface was used for a brief period of time during
the refactoring, now both its methods are functions.
上级 f4ebfd51
......@@ -92,9 +92,3 @@ type BreakpointManipulation interface {
ClearBreakpoint(addr uint64) (*Breakpoint, error)
ClearInternalBreakpoints() error
}
// VariableEval is an interface for dealing with eval scopes.
type VariableEval interface {
FrameToScope(Stackframe) *EvalScope
ConvertEvalScope(gid, frame int) (*EvalScope, error)
}
......@@ -92,14 +92,6 @@ type LoadConfig struct {
var loadSingleValue = LoadConfig{false, 0, 64, 0, 0}
var loadFullValue = LoadConfig{true, 1, 64, 64, -1}
// M represents a runtime M (OS thread) structure.
type M struct {
procid int // Thread ID or port.
spinning uint8 // Busy looping.
blocked uint8 // Waiting on futex / semaphore.
curg uintptr // Current G running on this thread.
}
// G status, from: src/runtime/runtime2.go
const (
Gidle uint64 = iota // 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册