From 68e17c03dc2574d4f187a532e5308a27aeb2effc Mon Sep 17 00:00:00 2001 From: Disconnect3d Date: Thu, 28 Feb 2019 17:01:03 -0500 Subject: [PATCH] Fix naming in Python sample_x86.py (#961) Backports commit 19ffa83d4353af8834c4c55590ca2ecd357a6bbe from unicorn. --- bindings/python/sample_x86.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/python/sample_x86.py b/bindings/python/sample_x86.py index 32619025..25c63ea5 100755 --- a/bindings/python/sample_x86.py +++ b/bindings/python/sample_x86.py @@ -29,8 +29,8 @@ def hook_block(uc, address, size, user_data): # callback for tracing instructions def hook_code(uc, address, size, user_data): print(">>> Tracing instruction at 0x%x, instruction size = 0x%x" %(address, size)) - eip = uc.reg_read(UC_X86_REG_EFLAGS) - print(">>> --- EFLAGS is 0x%x" %(eip)) + eflags = uc.reg_read(UC_X86_REG_EFLAGS) + print(">>> --- EFLAGS is 0x%x" %eflags) def hook_code64(uc, address, size, user_data): print(">>> Tracing instruction at 0x%x, instruction size = 0x%x" %(address, size))