MCPcopy Create free account
hub / github.com/WheretIB/nullc / nullcDebugConvertAddressToFunction

Function nullcDebugConvertAddressToFunction

NULLC/nullc.cpp:1225–1235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1223}
1224
1225ExternFuncInfo* nullcDebugConvertAddressToFunction(int instruction)
1226{
1227 unsigned functionCount = 0;
1228 ExternFuncInfo *codeFunctions = nullcDebugFunctionInfo(&functionCount);
1229 for(unsigned i = 0; i < functionCount; i++)
1230 {
1231 if(instruction > codeFunctions[i].address && instruction <= (codeFunctions[i].address + codeFunctions[i].codeSize))
1232 return&codeFunctions[i];
1233 }
1234 return NULL;
1235}
1236
1237#endif
1238

Callers 1

FillVariableInfoTreeFunction · 0.85

Calls 1

nullcDebugFunctionInfoFunction · 0.85

Tested by

no test coverage detected