Skip to content

Commit

Permalink
Merge pull request #1485 from co-neco/solve_IDAPython_relocation_issue
Browse files Browse the repository at this point in the history
solve a IDAPython relocation issue
  • Loading branch information
kabeor authored Aug 9, 2024
2 parents a418ace + 69f21d8 commit ea1a17b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qiling/extensions/idaplugin/qilingida.py
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ def start(self, *args, **kwargs):
elif self.ql.arch.bits == 64:
self.baseaddr = int(self.ql.os.profile.get("OS64", "load_address"), 16)
else:
self.baseaddr = 0x0
self.baseaddr = get_imagebase()

def run(self, begin=None, end=None):
self.ql.run(begin, end)
Expand Down Expand Up @@ -1115,7 +1115,7 @@ def ql_run_selection(self):

def ql_set_pc(self):
if self.qlinit:
ea = IDA.get_current_address()
ea = self.qlemu.ql_addr_from_ida(IDA.get_current_address())
self.qlemu.ql.arch.regs.arch_pc = ea
logging.info(f"QIling PC set to {hex(ea)}")
self.qlemu.status = self.qlemu.ql.save()
Expand Down

0 comments on commit ea1a17b

Please sign in to comment.