summaryrefslogtreecommitdiff
path: root/python/types.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/types.py')
-rw-r--r--python/types.py17
1 files changed, 16 insertions, 1 deletions
diff --git a/python/types.py b/python/types.py
index f5279047..42ed7ddd 100644
--- a/python/types.py
+++ b/python/types.py
@@ -641,7 +641,7 @@ class Type(object):
return core.BNGenerateAutoDemangledTypeId(name)
@classmethod
- def get_auto_demanged_type_id_source(self):
+ def get_auto_demangled_type_id_source(self):
return core.BNGetAutoDemangledTypeIdSource()
def with_confidence(self, confidence):
@@ -687,6 +687,21 @@ class SizeWithConfidence(object):
return self.value
+class RegisterStackAdjustmentWithConfidence(object):
+ def __init__(self, value, confidence = max_confidence):
+ self.value = value
+ self.confidence = confidence
+
+ def __str__(self):
+ return str(self.value)
+
+ def __repr__(self):
+ return repr(self.value)
+
+ def __int__(self):
+ return self.value
+
+
class RegisterSet(object):
def __init__(self, reg_list, confidence = max_confidence):
self.regs = reg_list