From 80e40a3d2ca735db955807ad0605b43ca22e4e35 Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Sat, 22 Aug 2020 12:47:01 +0200 Subject: Avoid generate default locationdb --- example/jitter/example_types.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'example/jitter/example_types.py') diff --git a/example/jitter/example_types.py b/example/jitter/example_types.py index 653adaf9..af44c6d8 100755 --- a/example/jitter/example_types.py +++ b/example/jitter/example_types.py @@ -11,6 +11,9 @@ from miasm.analysis.machine import Machine from miasm.core.types import MemStruct, Self, Void, Str, Array, Ptr, \ Num, Array, set_allocator from miasm.os_dep.common import heap +from miasm.core.locationdb import LocationDB + +loc_db = LocationDB() # Instantiate a heap my_heap = heap() @@ -154,7 +157,7 @@ print() # A random jitter # You can also use miasm.jitter.VmMngr.Vm(), but it does not happen in real # life scripts, so here is the usual way: -jitter = Machine("x86_32").jitter("python") +jitter = Machine("x86_32").jitter(loc_db, "python") vm = jitter.vm # Auto-allocated by my_heap. If you allocate memory at `addr`, -- cgit 1.4.1