# logging.debug("thread %s joined." % (thread)) if mode == 'fullnofilter': logging.info("running debug mode with ipython on file %s..." % (datafile)) parser = Parser(datafile, instructions, []) parser.start() analysis.start() parser.name = 'Parser' analysis.name = 'Analysis' for thread in [analysis, parser]: thread.join() # logging.debug("thread %s joined." % (thread)) if mode == 'parse': logging.info("running parse test, no analysis on file %s..." % (datafile)) parser.run() if mode == 'cfg': logging.info("generate control flow graph pdf using dot on file %s..." % (datafile)) parser.run() cfg = instructions.getCFG() cfg.writeDOTnPDF(datafile+"-graph") except KeyboardInterrupt: logging.info("aborting...") logging.info("finished. exiting...")