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 --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index f80d02a3..c31bdc26 100644 --- a/README.md +++ b/README.md @@ -172,7 +172,7 @@ Import the shellcode thanks to the `Container` abstraction: ```pycon >>> from miasm.analysis.binary import Container ->>> c = Container.from_string(s) +>>> c = Container.from_string(s, loc_db) >>> c ``` @@ -182,7 +182,7 @@ Disassembling the shellcode at address `0`: ```pycon >>> from miasm.analysis.machine import Machine >>> machine = Machine('x86_32') ->>> mdis = machine.dis_engine(c.bin_stream) +>>> mdis = machine.dis_engine(c.bin_stream, loc_db=loc_db) >>> asmcfg = mdis.dis_multiblock(0) >>> for block in asmcfg.blocks: ... print(block.to_string(asmcfg.loc_db)) @@ -208,7 +208,7 @@ RET Initializing the Jit engine with a stack: ```pycon ->>> jitter = machine.jitter(jit_type='python') +>>> jitter = machine.jitter(loc_db, jit_type='python') >>> jitter.init_stack() ``` -- cgit 1.4.1