mirror of
https://github.com/qilingframework/qiling.git
synced 2026-10-12 02:21:40 +00:00
Fix bug: qdb executes from the entry point of the binary when using ql.run(begin=0x1234)
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user