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:
Alessandro Arzilli
2025-04-07 20:45:17 +02:00
committed by GitHub
parent cc4343bff6
commit 193f21e49b
12 changed files with 40 additions and 67 deletions

View File

@ -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()}