mirror of
https://github.com/go-delve/delve.git
synced 2025-10-31 02:36:18 +08:00
proc: replace Thread.Location method with a function (#3972)
Replaces the Thread.Location method with a ThreadLocation function. All backends implemented the Location method exactly the same way, this change deduplicates it.
This commit is contained in:
committed by
GitHub
parent
cc4343bff6
commit
193f21e49b
@ -136,7 +136,7 @@ func doFuzzEvalExpressionSetup(f *testing.F) {
|
||||
assertNoError(err, f, "Stacktrace")
|
||||
|
||||
mem := c.Memory()
|
||||
loc, _ := c.CurrentThread().Location()
|
||||
loc, _ := proc.ThreadLocation(c.CurrentThread())
|
||||
tmem := &tracingMem{make(map[uint64]int), mem}
|
||||
|
||||
scope := &proc.EvalScope{Location: *loc, Regs: frames[0].Regs, Mem: tmem, BinInfo: c.BinInfo()}
|
||||
|
||||
Reference in New Issue
Block a user