Fix: reset bp.Addr not PC()
This commit is contained in:
parent
73ddaa2653
commit
23dacd8cc7
@ -135,7 +135,7 @@ func (dbp *DebuggedProcess) Step() error {
|
|||||||
|
|
||||||
bp, ok := dbp.PCtoBP(regs.PC())
|
bp, ok := dbp.PCtoBP(regs.PC())
|
||||||
if ok {
|
if ok {
|
||||||
err = dbp.restoreInstruction(regs.PC(), bp.OriginalData)
|
err = dbp.restoreInstruction(bp.Addr, bp.OriginalData)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user