Fix QDB bug that mistreats prophecy prediction

This commit is contained in:
elicn
2025-02-20 13:19:20 +02:00
parent b25c910f92
commit 0328e2623f
+3 -3
View File
@@ -269,6 +269,9 @@ class QlQdb(cmd.Cmd, QlDebugger):
prophecy = self.predictor.predict()
if prophecy.going:
self.set_breakpoint(prophecy.where, is_temp=True)
else:
cur_insn = self.predictor.disasm(self.cur_addr)
bp_addr = self.cur_addr + cur_insn.size
@@ -277,9 +280,6 @@ class QlQdb(cmd.Cmd, QlDebugger):
self.set_breakpoint(bp_addr, is_temp=True)
else:
self.set_breakpoint(prophecy.where, is_temp=True)
self._run()
@SnapshotManager.snapshot