import tests from pwndbg.commands.nearpc import emulate from pwndbg.commands.nearpc import nearpc from pwndbg.commands.nearpc import pdisass from pwndbg.commands.windbg import u EMULATE_DISASM_BINARY = tests.binaries.get("emulate_disasm.out") EMULATE_DISASM_LOOP_BINARY = tests.binaries.get("emulate_disasm_loop.out") def test_emulate_disasm(start_binary): """ Tests emulate command and its caching behavior """ start_binary(EMULATE_DISASM_BINARY) disasm_with_emu_0x400080 = [ " ► 0x400080 <_start> jmp label