debugguer = True elif opt in ("-r","--reference"): reference = int(param,16) if test: _test() else: if len(opts[1]) == 0: print "Missing file !" usage(1) exe = opts[1][0] cpu.dis(open(exe).read()[offset:],data) if disassemble: cpu.show_code() elif reference is not None: print "Reference to Address %s : " % hex(reference) print "\tJMP => ", for x in cpu.code[cpu.addr2i[reference]].xref_jmp: print "%s " % hex(x), print "\n\tCALL => ", for x in cpu.code[cpu.addr2i[reference]].xref_call: print "%s " % hex(x), elif not graphic is None: cpu.get_graph(complete=True,output=graphic) elif not block_graphic is None: cpu.get_graph(complete=False,output=block_graphic) elif debugguer: import debuguer d = debuguer.DEBUGUERVM(cpu,globals())