and isinstance(dest.name, AsmLabel)): continue todo.append((mdis, instr, dest.name.offset)) if args.funcswatchdog is not None and args.funcswatchdog <= 0: finish = True if args.try_disasm_all: for a, b in done_interval.intervals: if b in done: continue log.debug('add func %s' % hex(b)) todo.append((mdis, None, b)) # Generate dotty graph all_blocks = AsmCFG() for blocks in all_funcs_blocks.values(): all_blocks += blocks log.info('generate graph file') open('graph_execflow.dot', 'w').write(all_blocks.dot(offset=True)) log.info('generate intervals') all_lines = [] total_l = 0 print done_interval if args.image: log.info('build img') done_interval.show()
continue offset = mdis.loc_db.get_location_offset(dest.loc_key) todo.append((mdis, instr, offset)) if args.funcswatchdog is not None and args.funcswatchdog <= 0: finish = True if args.try_disasm_all: for a, b in done_interval.intervals: if b in done: continue log.debug('add func %s' % hex(b)) todo.append((mdis, None, b)) # Generate dotty graph all_asmcfg = AsmCFG(mdis.loc_db) for blocks in all_funcs_blocks.values(): all_asmcfg += blocks log.info('generate graph file') open('graph_execflow.dot', 'w').write(all_asmcfg.dot(offset=True)) log.info('generate intervals') all_lines = [] total_l = 0 print done_interval if args.image: log.info('build img') done_interval.show()
continue todo.append((mdis, instr, dest.name.offset)) if args.funcswatchdog is not None and args.funcswatchdog <= 0: finish = True if args.try_disasm_all: for a, b in done_interval.intervals: if b in done: continue log.debug('add func %s' % hex(b)) todo.append((mdis, None, b)) # Generate dotty graph all_blocks = AsmCFG() for blocks in all_funcs_blocks.values(): all_blocks += blocks log.info('generate graph file') open('graph_execflow.dot', 'w').write(all_blocks.dot(offset=True)) log.info('generate intervals') all_lines = [] total_l = 0 print done_interval if args.image: log.info('build img')
offset = mdis.symbol_pool.loc_key_to_offset(dest.loc_key) todo.append((mdis, instr, offset)) if args.funcswatchdog is not None and args.funcswatchdog <= 0: finish = True if args.try_disasm_all: for a, b in done_interval.intervals: if b in done: continue log.debug('add func %s' % hex(b)) todo.append((mdis, None, b)) # Generate dotty graph all_asmcfg = AsmCFG(mdis.symbol_pool) for blocks in all_funcs_blocks.values(): all_asmcfg += blocks log.info('generate graph file') open('graph_execflow.dot', 'w').write(all_asmcfg.dot(offset=True)) log.info('generate intervals') all_lines = [] total_l = 0 print done_interval if args.image: log.info('build img')