MCPcopy Create free account
hub / github.com/beefytech/Beef / FindLineDataAtAddress

Method FindLineDataAtAddress

IDEHelper/WinDebugger.cpp:3114–3128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3112static int gFindLineDataAt = 0;
3113
3114DbgLineData* WinDebugger::FindLineDataAtAddress(addr_target address, DbgSubprogram** outSubProgram, DbgSrcFile** outSrcFile, int* outLineIdx, DbgOnDemandKind onDemandKind)
3115{
3116 gFindLineDataAt++;
3117
3118 BP_ZONE("WinDebugger::FindLineDataAtAddress");
3119
3120 auto dwSubprogram = mDebugTarget->FindSubProgram((addr_target)address, onDemandKind);
3121 if (dwSubprogram == NULL)
3122 return NULL;
3123
3124 FixupLineDataForSubprogram(dwSubprogram);
3125 auto lineData = dwSubprogram->FindClosestLine(address, outSubProgram, outSrcFile, outLineIdx);
3126
3127 return lineData;
3128}
3129
3130DbgLineData* WinDebugger::FindLineDataInSubprogram(addr_target address, DbgSubprogram* dwSubprogram)
3131{

Callers

nothing calls this directly

Calls 2

FindSubProgramMethod · 0.80
FindClosestLineMethod · 0.80

Tested by

no test coverage detected