summaryrefslogtreecommitdiff
path: root/python/architecture.py
diff options
context:
space:
mode:
authorXusheng <xusheng@vector35.com>2020-09-18 18:35:27 +0800
committerXusheng <xusheng@vector35.com>2020-10-15 12:50:02 +0800
commitcbe3ded641a0ce4b50ae447a4426b71f3e0f0119 (patch)
tree339cff6f061f89a49a78f82626dd5601c448bf05 /python/architecture.py
parentd77c63efc16070868bf6eb87d274bf846f4440f7 (diff)
edit current line in linear view
add CanAssemble() to architectures
Diffstat (limited to 'python/architecture.py')
-rw-r--r--python/architecture.py5
1 files changed, 5 insertions, 0 deletions
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