MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / get_stack_var_at_frame_offset

Method get_stack_var_at_frame_offset

python/function.py:2685–2695  ·  view source on GitHub ↗
(
	    self, offset: int, addr: int, arch: Optional['architecture.Architecture'] = None
	)

Source from the content-addressed store, hash-verified

2683 return core.BNIsVariableUserDefined(self.handle, var.to_BNVariable())
2684
2685 def get_stack_var_at_frame_offset(
2686 self, offset: int, addr: int, arch: Optional['architecture.Architecture'] = None
2687 ) -> Optional['variable.Variable']:
2688 if arch is None:
2689 arch = self.arch
2690 found_var = core.BNVariableNameAndType()
2691 if not core.BNGetStackVariableAtFrameOffset(self.handle, arch.handle, addr, offset, found_var):
2692 return None
2693 result = variable.Variable.from_BNVariable(self, found_var.var)
2694 core.BNFreeVariableNameAndType(found_var)
2695 return result
2696
2697 def get_stack_var_at_frame_offset_after_instruction(
2698 self, offset: int, addr: int, arch: Optional['architecture.Architecture'] = None

Callers

nothing calls this directly

Calls 1

from_BNVariableMethod · 0.45

Tested by

no test coverage detected