From cbe3ded641a0ce4b50ae447a4426b71f3e0f0119 Mon Sep 17 00:00:00 2001 From: Xusheng Date: Fri, 18 Sep 2020 18:35:27 +0800 Subject: edit current line in linear view add CanAssemble() to architectures --- python/architecture.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'python/architecture.py') diff --git a/python/architecture.py b/python/architecture.py index bb1f17db..0c5f816d 100644 --- a/python/architecture.py +++ b/python/architecture.py @@ -453,6 +453,11 @@ class Architecture(with_metaclass(_ArchitectureMetaClass, object)): core.BNFreeTypeLibraryList(handles, count.value) return result + @property + def can_assemble(self): + """returns if the architecture can assemble instructions (read-only)""" + return core.BNCanArchitectureAssemble(self.handle) + def _init(self, ctxt, handle): self.handle = handle -- cgit v1.3.1