def __init__(self, stack_trace, bookmark_view, kernel_base, reg_list, registerMath): self.stack_trace = stack_trace self.bookmark_view = bookmark_view self.just_debug = False self.recent_bookmark = 1 self.recent_fd = '1' self.kernel_base = kernel_base self.reg_list = reg_list self.registerMath = registerMath self.origAnalysis = origAnalysis.OrigAnalysis(idc.GetInputFile()) proc_info = idaapi.get_inf_structure() if proc_info.procName == 'ARM': self.PC='pc' self.SP='sp' else: self.PC='eip' self.SP='esp'
def __init__(self, stack_trace, bookmark_view, data_watch, write_watch, kernel_base, reg_list): self.stack_trace = stack_trace self.data_watch = data_watch self.write_watch = write_watch self.bookmark_view = bookmark_view self.just_debug = False self.recent_bookmark = 1 self.recent_fd = '1' self.kernel_base = kernel_base self.reg_list = reg_list self.origAnalysis = origAnalysis.OrigAnalysis(idaversion.get_input_file_path()) proc_info = idaapi.get_inf_structure() if proc_info.procName == 'ARM': self.PC='pc' self.SP='sp' else: self.PC='eip' self.SP='esp'