diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2016-02-16 08:46:55 +0100 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2016-02-19 16:05:16 +0100 |
| commit | a7f4a0efdddb72bd994b5dc219b1374a616a50ce (patch) | |
| tree | d8a4d7d032d65204c498601b09fdcf697463d19c /miasm2/os_dep/common.py | |
| parent | 34039011459c729a93a79deea1d3c5000bc03032 (diff) | |
| download | miasm-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.py | 4 |
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 |