You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The plugin is not able to find disassembly window when running a x64 sample.
Solution is as follows - patch function find_disass_view in file custom.py:
def find_disass_view(self):
ip_name: str = dbg.registers.pc
# if on x64 arch, the ip register is called RIP, but the view is NOT called IDA View-RIP, but IDA View-EIP
# thus need to change RIP to EIP, for this purpose
if ip_name == "RIP":
ip_name = "EIP"
widget = idaapi.find_widget("IDA View-%s" % ip_name)
if widget:
return widget
for c in map(chr, range(65, 75)):
widget = idaapi.find_widget("IDA View-%s" % c)
if widget:
return widget
return None
Feel free to pull request / update code, I'm too lazy to pull request.
The text was updated successfully, but these errors were encountered:
This is not longer the case in IDA 9.0. ida_kernwin.find_widget("IDA View-RIP") works fine on x64.
I suggest the following change of code to fix it for old and new IDA:
deffind_disass_view(self):
widget=idaapi.find_widget(f'IDA View-{dbg.registers.pc}')
ifwidget:
returnwidgetwidget=idaapi.find_widget('IDA View-EIP') # IDA < 9.0 called the windows "IDA View-EIP" even for x64 targetsifwidget:
returnwidgetforcinrange('A', 'Z'):
widget=idaapi.find_widget(f'IDA View-{c}')
ifwidget:
returnwidgetreturnNone
The plugin is not able to find disassembly window when running a x64 sample.
Solution is as follows - patch function
find_disass_view
in filecustom.py
:Feel free to pull request / update code, I'm too lazy to pull request.
The text was updated successfully, but these errors were encountered: