mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 09:49:23 +02:00
Fixed idaxml working in IDA 9.x
This commit is contained in:
parent
542c2aa617
commit
f47258c2b2
4 changed files with 20 additions and 27 deletions
|
@ -30,10 +30,6 @@ import idaxml
|
|||
import idc
|
||||
import sys
|
||||
|
||||
if sys.version_info.major >= 3:
|
||||
from idaxml import _exc_info
|
||||
sys.exc_value = lambda: _exc_info()[1]
|
||||
sys.exc_type = lambda: _exc_info()[0]
|
||||
|
||||
class XmlExporterPlugin(ida_idaapi.plugin_t):
|
||||
"""
|
||||
|
@ -82,7 +78,7 @@ class XmlExporterPlugin(ida_idaapi.plugin_t):
|
|||
except:
|
||||
ida_kernwin.hide_wait_box()
|
||||
msg = "***** Exception occurred: XML Exporter failed! *****"
|
||||
print("\n" + msg + "\n", sys.exc_type, sys.exc_value)
|
||||
print(f"\n{msg}\n {type(e).__name__}: {e}")
|
||||
idc.warning(msg)
|
||||
finally:
|
||||
xml.cleanup()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue