about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--example/jitter/arm.py2
-rw-r--r--example/jitter/unpack_upx.py4
-rw-r--r--miasm2/jitter/loader/elf.py1
-rw-r--r--miasm2/os_dep/win_api_x86_32.py2
5 files changed, 4 insertions, 7 deletions
diff --git a/README.md b/README.md
index 81992f90..75e8818f 100644
--- a/README.md
+++ b/README.md
@@ -249,7 +249,7 @@ RIP 0000000040000013
 Interacting with the jitter:
 
 ```
->>> jitter.vm.dump_memory_page_pool()
+>>> jitter.vm
 ad 1230000 size 10000 RW_ hpad 0x2854b40
 ad 40000000 size 16 RW_ hpad 0x25e0ed0
 
diff --git a/example/jitter/arm.py b/example/jitter/arm.py
index 5342ee6d..7bd354bc 100644
--- a/example/jitter/arm.py
+++ b/example/jitter/arm.py
@@ -22,7 +22,7 @@ else:
     logging.basicConfig(level=logging.WARNING)
 
 if options.verbose is True:
-    sb.jitter.vm.dump_memory_page_pool()
+    print sb.jitter.vm
 
 if options.address is None:
     raise ValueError('Invalid address')
diff --git a/example/jitter/unpack_upx.py b/example/jitter/unpack_upx.py
index fa1eb4ae..08b733a4 100644
--- a/example/jitter/unpack_upx.py
+++ b/example/jitter/unpack_upx.py
@@ -44,7 +44,7 @@ else:
     logging.basicConfig(level=logging.WARNING)
 
 if options.verbose is True:
-    sb.jitter.vm.dump_memory_page_pool()
+    print sb.jitter.vm
 
 
 ep = sb.entry_point
@@ -71,7 +71,7 @@ if options.graph is True:
 
 
 if options.verbose is True:
-    sb.jitter.vm.dump_memory_page_pool()
+    print sb.jitter.vm
 
 
 def update_binary(jitter):
diff --git a/miasm2/jitter/loader/elf.py b/miasm2/jitter/loader/elf.py
index e5241910..61c40ddd 100644
--- a/miasm2/jitter/loader/elf.py
+++ b/miasm2/jitter/loader/elf.py
@@ -73,7 +73,6 @@ def vm_load_elf(vm, fdata, **kargs):
         #print hex(a), hex(b)
         vm.add_memory_page(a, PAGE_READ | PAGE_WRITE, "\x00"*(b+2-a))
 
-    #vm.dump_memory_page_pool()
 
     for r_vaddr, data in all_data.items():
         vm.set_mem(r_vaddr, data)
diff --git a/miasm2/os_dep/win_api_x86_32.py b/miasm2/os_dep/win_api_x86_32.py
index fecc8a29..2f557c52 100644
--- a/miasm2/os_dep/win_api_x86_32.py
+++ b/miasm2/os_dep/win_api_x86_32.py
@@ -1675,7 +1675,6 @@ def ntdll_ZwProtectVirtualMemory(jitter):
     # XXX todo real old protect
     jitter.vm.set_mem(args.lpfloldprotect, pck32(0x40))
 
-    # dump_memory_page_pool_py()
     jitter.func_ret_stdcall(ret_ad, 1)
 
 
@@ -1709,7 +1708,6 @@ def ntdll_ZwAllocateVirtualMemory(jitter):
         alloc_addr, access_dict[args.flprotect], "\x00" * dwsize)
     jitter.vm.set_mem(args.lppvoid, pck32(alloc_addr))
 
-    # dump_memory_page_pool_py()
     jitter.func_ret_stdcall(ret_ad, 0)