proc: remove dead code (#2321)
This commit is contained in:
parent
fa016faa52
commit
3c86d68a99
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user