mirror of
https://github.com/go-delve/delve.git
synced 2025-10-29 01:27:16 +08:00
proc: remove (*EvalScope).globalFor (#1658)
This commit is contained in:
committed by
Derek Parker
parent
f0a9031969
commit
c441330822
@ -212,12 +212,14 @@ func TestDwarfExprLoclist(t *testing.T) {
|
||||
mainfn := bi.LookupFunc["main.main"]
|
||||
|
||||
mem := newFakeMemory(defaultCFA, uint16(before), uint16(after))
|
||||
regs := linutil.AMD64Registers{Regs: &linutil.AMD64PtraceRegs{}}
|
||||
const PC = 0x40100
|
||||
regs := linutil.AMD64Registers{Regs: &linutil.AMD64PtraceRegs{Rip: PC}}
|
||||
|
||||
scope := &proc.EvalScope{Location: proc.Location{PC: 0x40100, Fn: mainfn}, Regs: dwarfRegisters(bi, ®s), Mem: mem, BinInfo: bi}
|
||||
scope := &proc.EvalScope{Location: proc.Location{PC: PC, Fn: mainfn}, Regs: dwarfRegisters(bi, ®s), Mem: mem, BinInfo: bi}
|
||||
|
||||
uintExprCheck(t, scope, "a", before)
|
||||
scope.PC = 0x40800
|
||||
scope.Regs.Regs[scope.Regs.PCRegNum].Uint64Val = scope.PC
|
||||
uintExprCheck(t, scope, "a", after)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user