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/disasm/dis_binary.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'example/disasm/dis_binary.py') diff --git a/example/disasm/dis_binary.py b/example/disasm/dis_binary.py index 37eabb14..af140f28 100644 --- a/example/disasm/dis_binary.py +++ b/example/disasm/dis_binary.py @@ -2,12 +2,14 @@ from __future__ import print_function import sys from miasm.analysis.binary import Container from miasm.analysis.machine import Machine +from miasm.core.locationdb import LocationDB fdesc = open(sys.argv[1], 'rb') +loc_db = LocationDB() # The Container will provide a *bin_stream*, bytes source for the disasm engine # It will prodive a view from a PE or an ELF. -cont = Container.from_stream(fdesc) +cont = Container.from_stream(fdesc, loc_db) # The Machine, instantiated with the detected architecture, will provide tools # (disassembler, etc.) to work with this architecture -- cgit 1.4.1