From 67905ab147629294160ec99b2fb3e21446d06bb4 Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Thu, 13 Oct 2016 20:57:34 +0800 Subject: [PATCH] python: rename test_i386_reg_save() to test_i386_context_save() --- bindings/python/sample_x86.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bindings/python/sample_x86.py b/bindings/python/sample_x86.py index 960fe18c..81027b2a 100755 --- a/bindings/python/sample_x86.py +++ b/bindings/python/sample_x86.py @@ -312,8 +312,8 @@ def test_i386_inout(): print("ERROR: %s" % e) -def test_i386_reg_save(): - print("Save/restore registers in opaque blob") +def test_i386_context_save(): + print("Save/restore CPU context in opaque blob") address = 0 code = '\x40' # inc eax try: @@ -332,7 +332,7 @@ def test_i386_reg_save(): print(">>> execute 'inc eax'") mu.emu_start(address, address+1) - print(">>> save the register state") + print(">>> save the CPU context") saved_context = mu.context_save() print(">>> execute 'inc eax'") @@ -341,7 +341,7 @@ def test_i386_reg_save(): print(">>> assert eax == 3") assert mu.reg_read(UC_X86_REG_EAX) == 3 - print(">>> restore the register state") + print(">>> restore the CPU context") mu.context_restore(saved_context) print(">>> assert eax == 2") @@ -353,7 +353,7 @@ def test_i386_reg_save(): print(">>> assert eax == 3") assert mu.reg_read(UC_X86_REG_EAX) == 3 - print(">>> restore the register state") + print(">>> restore the CPU context") mu.context_restore(saved_context) print(">>> assert eax == 2") @@ -533,7 +533,7 @@ if __name__ == '__main__': print("=" * 20) test_i386_inout() print("=" * 20) - test_i386_reg_save() + test_i386_context_save() print("=" * 20) test_x86_64() print("=" * 20)