未验证 提交 3c86d68a 编写于 作者: A Alessandro Arzilli 提交者: GitHub

proc: remove dead code (#2321)

上级 fa016faa
......@@ -36,8 +36,6 @@ type EvalScope struct {
frameOffset int64
aordr *dwarf.Reader // extra reader to load DW_AT_abstract_origin entries, do not initialize
// When the following pointer is not nil this EvalScope was created
// by CallFunction and the expression evaluation is executing on a
// different goroutine from the debugger's main goroutine.
......@@ -558,14 +556,6 @@ func (scope *EvalScope) image() *Image {
return scope.BinInfo.funcToImage(scope.Fn)
}
// globalFor returns a global scope for 'image' with the register values of 'scope'.
func (scope *EvalScope) globalFor(image *Image) *EvalScope {
r := *scope
r.Regs.StaticBase = image.StaticBase
r.Fn = &Function{cu: &compileUnit{image: image}}
return &r
}
// DwarfReader returns the DwarfReader containing the
// Dwarf information for the target process.
func (scope *EvalScope) DwarfReader() *reader.Reader {
......
......@@ -24,9 +24,6 @@ const (
maxArrayStridePrefetch = 1024 // Maximum size of array stride for which we will prefetch the array contents
chanRecv = "chan receive"
chanSend = "chan send"
hashTophashEmptyZero = 0 // used by map reading code, indicates an empty cell
hashTophashEmptyOne = 1 // used by map reading code, indicates an empty cell in Go 1.12 and later
hashMinTopHashGo111 = 4 // used by map reading code, indicates minimum value of tophash that isn't empty or evacuated, in Go1.11
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册