summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--binaryninjacore.h1
-rw-r--r--python/types.py8
2 files changed, 9 insertions, 0 deletions
diff --git a/binaryninjacore.h b/binaryninjacore.h
index 32c88fd2..b4b5dd3f 100644
--- a/binaryninjacore.h
+++ b/binaryninjacore.h
@@ -5116,6 +5116,7 @@ extern "C"
BINARYNINJACOREAPI char* BNGetTypeBuilderAlternateName(BNTypeBuilder* type);
BINARYNINJACOREAPI bool BNTypeBuilderIsSystemCall(BNTypeBuilder* type);
BINARYNINJACOREAPI uint32_t BNTypeBuilderGetSystemCallNumber(BNTypeBuilder* type);
+ BINARYNINJACOREAPI void BNTypeBuilderSetStackAdjustment(BNTypeBuilder* type, BNOffsetWithConfidence* adjust);
BINARYNINJACOREAPI char* BNGetTypeBuilderString(BNTypeBuilder* type, BNPlatform* platform);
BINARYNINJACOREAPI char* BNGetTypeBuilderStringBeforeName(BNTypeBuilder* type, BNPlatform* platform);
diff --git a/python/types.py b/python/types.py
index 75f245f1..3d1dc73e 100644
--- a/python/types.py
+++ b/python/types.py
@@ -957,6 +957,14 @@ class FunctionBuilder(TypeBuilder):
return OffsetWithConfidence.from_core_struct(core.BNGetTypeBuilderStackAdjustment(self._handle))
@property
+ def stack_adjustment(self) -> OffsetWithConfidence:
+ return OffsetWithConfidence.from_core_struct(core.BNGetTypeBuilderStackAdjustment(self._handle))
+
+ @stack_adjustment.setter
+ def stack_adjustment(self, value: OffsetWithConfidenceType) -> None:
+ core.BNTypeBuilderSetStackAdjustment(self._handle, OffsetWithConfidence.get_core_struct(value))
+
+ @property
def parameters(self) -> List[FunctionParameter]:
"""Type parameters list (read-only)"""
count = ctypes.c_ulonglong()