mirror of
https://github.com/qilingframework/qiling.git
synced 2026-10-12 02:21:40 +00:00
Fix QDB bug that mistreats prophecy prediction
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user