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

Method GetIncomingRegisterValue

callingconvention.cpp:341–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339
340
341RegisterValue CallingConvention::GetIncomingRegisterValue(uint32_t reg, Function*)
342{
343 uint32_t regStack = GetArchitecture()->GetRegisterStackForRegister(reg);
344 if ((regStack != BN_INVALID_REGISTER) && (reg == GetArchitecture()->GetRegisterStackInfo(regStack).stackTopReg))
345 {
346 RegisterValue value;
347 value.state = ConstantValue;
348 value.value = 0;
349 return value;
350 }
351 return RegisterValue();
352}
353
354
355RegisterValue CallingConvention::GetIncomingFlagValue(uint32_t, Function*)

Callers 1

Calls 4

RegisterValueClass · 0.70
GetRegisterStackInfoMethod · 0.45
GetObjectMethod · 0.45

Tested by

no test coverage detected