about summary refs log tree commit diff stats
path: root/miasm2/os_dep/common.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2016-02-16 08:46:55 +0100
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2016-02-19 16:05:16 +0100
commita7f4a0efdddb72bd994b5dc219b1374a616a50ce (patch)
treed8a4d7d032d65204c498601b09fdcf697463d19c /miasm2/os_dep/common.py
parent34039011459c729a93a79deea1d3c5000bc03032 (diff)
downloadmiasm-a7f4a0efdddb72bd994b5dc219b1374a616a50ce.tar.gz
miasm-a7f4a0efdddb72bd994b5dc219b1374a616a50ce.zip
Jitter/vm: Suppport memory comment
Diffstat (limited to 'miasm2/os_dep/common.py')
-rw-r--r--miasm2/os_dep/common.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/miasm2/os_dep/common.py b/miasm2/os_dep/common.py
index d70cdccf..9c0377a9 100644
--- a/miasm2/os_dep/common.py
+++ b/miasm2/os_dep/common.py
@@ -1,6 +1,7 @@
 import os
 
 from miasm2.jitter.csts import PAGE_READ, PAGE_WRITE
+from miasm2.core.utils import get_caller_name
 
 BASE_SB_PATH = "file_sb"
 
@@ -71,7 +72,8 @@ class heap(object):
             combination of them); default is PAGE_READ|PAGE_WRITE
         """
         addr = self.next_addr(size)
-        vm.add_memory_page(addr, perm, "\x00" * size)
+        vm.add_memory_page(addr, perm, "\x00" * size,
+                           "Heap alloc by %s" % get_caller_name(2))
         return addr