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

Method get_reg_value

python/lowlevelil.py:885–890  ·  view source on GitHub ↗
(self, reg: 'architecture.RegisterType')

Source from the content-addressed store, hash-verified

883 return result
884
885 def get_reg_value(self, reg: 'architecture.RegisterType') -> variable.RegisterValue:
886 if self.function.arch is None:
887 raise Exception("Can not call get_reg_value on function with Architecture set to None")
888 reg = self.function.arch.get_reg_index(reg)
889 value = core.BNGetLowLevelILRegisterValueAtInstruction(self.function.handle, reg, self.instr_index)
890 return variable.RegisterValue.from_BNRegisterValue(value, self.function.arch)
891
892 def get_reg_value_after(self, reg: 'architecture.RegisterType') -> variable.RegisterValue:
893 if self.function.arch is None:

Callers

nothing calls this directly

Calls 2

get_reg_indexMethod · 0.80
from_BNRegisterValueMethod · 0.80

Tested by

no test coverage detected