diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2014-10-07 17:44:50 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2014-10-07 17:44:50 +0200 |
| commit | 809d3738bb845d5b6d08e348e9a8a03e62536121 (patch) | |
| tree | 8591cb2d9675bc5710ab8bdfe1111f0b93cdd5d5 /miasm2/jitter/os_dep/linux_stdlib.py | |
| parent | 10b4c8a8b46b5e247768f6f55bf9a9f006fdd61c (diff) | |
| download | focaccia-miasm-809d3738bb845d5b6d08e348e9a8a03e62536121.tar.gz focaccia-miasm-809d3738bb845d5b6d08e348e9a8a03e62536121.zip | |
Remove vm_ prefix /!\ API MODIF
The jitter cpu/vm modules used an unecessary vm_ prefix for various api. jitter.cpu.vm_get_gpreg() => jitter.cpu.get_gpreg() jitter.vm.vm_get_mem... => jitter.vm.get_mem...
Diffstat (limited to 'miasm2/jitter/os_dep/linux_stdlib.py')
| -rw-r--r-- | miasm2/jitter/os_dep/linux_stdlib.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/miasm2/jitter/os_dep/linux_stdlib.py b/miasm2/jitter/os_dep/linux_stdlib.py index 50208b93..9dbc6c60 100644 --- a/miasm2/jitter/os_dep/linux_stdlib.py +++ b/miasm2/jitter/os_dep/linux_stdlib.py @@ -25,7 +25,7 @@ def xxx_memcpy(jitter): copies n bytes from memory area src to memory area dest. ''' ret_addr, (dest, src, n) = jitter.func_args_stdcall(3) - jitter.vm.vm_set_mem(dest, jitter.vm.vm_get_mem(src, n)) + jitter.vm.set_mem(dest, jitter.vm.get_mem(src, n)) return jitter.func_ret_stdcall(ret_addr, dest) @@ -38,7 +38,7 @@ def xxx_puts(jitter): ''' ret_addr, (s,) = jitter.func_args_stdcall(1) while True: - c = jitter.vm.vm_get_mem(s, 1) + c = jitter.vm.get_mem(s, 1) s += 1 if c == '\x00': break @@ -57,14 +57,14 @@ def xxx_snprintf(jitter): ret_addr, (str, size, format) = jitter.func_args_stdcall(3) curarg, output = 3, '' while True: - c = jitter.vm.vm_get_mem(format, 1) + c = jitter.vm.get_mem(format, 1) format += 1 if c == '\x00': break if c == '%': token = '%' while True: - c = jitter.vm.vm_get_mem(format, 1) + c = jitter.vm.get_mem(format, 1) format += 1 token += c if c in '%cdfsux': @@ -74,5 +74,5 @@ def xxx_snprintf(jitter): output += c output = output[:size - 1] ret = len(output) - jitter.vm.vm_set_mem(str, output + '\x00') + jitter.vm.set_mem(str, output + '\x00') return jitter.func_ret_stdcall(ret_addr, ret) |