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

Method get_regs_read_by

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

Source from the content-addressed store, hash-verified

2034 return result
2035
2036 def get_regs_read_by(self, addr: int,
2037 arch: Optional['architecture.Architecture'] = None) -> List['architecture.RegisterName']:
2038 if arch is None:
2039 arch = self.arch
2040 count = ctypes.c_ulonglong()
2041 regs = core.BNGetRegistersReadByInstruction(self.handle, arch.handle, addr, count)
2042 assert regs is not None, "core.BNGetRegistersReadByInstruction returned None"
2043 result = []
2044 for i in range(0, count.value):
2045 result.append(arch.get_reg_name(regs[i]))
2046 core.BNFreeRegisterList(regs)
2047 return result
2048
2049 def get_regs_written_by(self, addr: int,
2050 arch: Optional['architecture.Architecture'] = None) -> List['architecture.RegisterName']:

Callers

nothing calls this directly

Calls 2

get_reg_nameMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected