def __init__(self):
idaapi.processor_t.__init__(self)
# TODO: logging not working.
# self.work_folder = ""
# self.log_fn = self.work_folder + 'work.log'
# logging.basicConfig(filename=self.log_fn, level=logging.DEBUG, filemode='w')
# self.logger = open(self.log_fn, 'w')
self.relocatable_file = re.search(r'\.o$', GetInputFile()) != None
self.init_instructions()
self.prev_addr_analyzed = -1
self.current_hex_packet = None
self.hd = HexagonDisassembler()
# TODO: this should be instatiated on demand, because I think the init is called every time IDA starts
self.disasm_cache = {}
# TODO: use orderdict to remove old entries
self.profiler = cProfile.Profile()
hexagondisasm.profiler = self.profiler
# TODO: I don't know how to access this class from the IDA Python
# console to get the profiler, I do it through the module
评论列表
文章目录