summaryrefslogtreecommitdiff
path: root/python/binaryview.py
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2018-02-26 22:37:19 -0500
committerRusty Wagner <rusty@vector35.com>2018-02-26 23:04:10 -0500
commit105fb2549bd8fc0e19907fefff1168322dee3bb3 (patch)
tree0f00c3846356f142804e65c458f47bbf51a4dad4 /python/binaryview.py
parentbfce40850be6f6df4138d717798d4d0d35865908 (diff)
Architecture plugins no longer need to override the perform_* methods (you can now override get_instruction_info, not perform_get_instruction_info). The perform_* methods are now deprecated but will still function as expected. Added architecture hooks to Python API using this new style.
Diffstat (limited to 'python/binaryview.py')
-rw-r--r--python/binaryview.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/binaryview.py b/python/binaryview.py
index fae98c14..7a6bc875 100644
--- a/python/binaryview.py
+++ b/python/binaryview.py
@@ -400,7 +400,7 @@ class BinaryViewType(object):
arch = core.BNGetArchitectureForViewType(self.handle, ident, endian)
if arch is None:
return None
- return architecture.Architecture(arch)
+ return architecture.CoreArchitecture(arch)
def register_platform(self, ident, arch, plat):
core.BNRegisterPlatformForViewType(self.handle, ident, arch.handle, plat.handle)
@@ -812,7 +812,7 @@ class BinaryView(object):
arch = core.BNGetDefaultArchitecture(self.handle)
if arch is None:
return None
- return architecture.Architecture(handle=arch)
+ return architecture.CoreArchitecture(handle=arch)
@arch.setter
def arch(self, value):
@@ -2191,7 +2191,7 @@ class BinaryView(object):
else:
func = None
if refs[i].arch:
- arch = architecture.Architecture(refs[i].arch)
+ arch = architecture.CoreArchitecture(refs[i].arch)
else:
arch = None
addr = refs[i].addr