Fix bug: qdb executes from the entry point of the binary when using ql.run(begin=0x1234)

This commit is contained in:
ltlly
2023-07-13 21:59:34 +03:00
committed by Eli
parent 7d285328a5
commit 930da790c2
+4 -1
View File
@@ -81,7 +81,10 @@ class QlQdb(cmd.Cmd, QlDebugger):
elif init_hook and self.ql.loader.entry_point != int(init_hook, 0):
self.do_breakpoint(init_hook)
self.cur_addr = self.ql.loader.entry_point
if self.ql.entry_point:
self.cur_addr = self.ql.entry_point
else:
self.cur_addr = self.ql.loader.entry_point
self.init_state = self.ql.save()