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

Function TestPDB

IDEHelper/COFF.cpp:7291–7321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7289}
7290
7291NS_BF_DBG_BEGIN
7292// void TestCoff(void* tdata, int tdataSize, void* cuData, int cuDataSize)
7293// {
7294// DebugTarget* debugTarget = new DebugTarget(NULL);
7295// {
7296// COFF coff(debugTarget);
7297// coff.mCvTypeSectionData = (uint8*)tdata;
7298// coff.mCvTypeSectionDataSize = tdataSize;
7299//
7300// coff.mCvCompileUnitData = (uint8*)cuData;
7301// coff.mCvCompileUnitDataSize = cuDataSize;
7302//
7303// coff.ProcessDebugInfo();
7304// }
7305// delete debugTarget;
7306// }
7307
7308void TestPDB(const StringImpl& fileName, WinDebugger* debugger)
7309{
7310 DebugTarget* debugTarget = new DebugTarget(NULL);
7311 COFF coff(debugTarget);
7312 coff.mDebugger = debugger;
7313 uint8 wantGuid[16];
7314 coff.TryLoadPDB(fileName, wantGuid, -1);
7315 coff.ParseTypeData();
7316 coff.CvParseIPI();
7317 coff.ParseGlobalsData();
7318 coff.ParseSymbolData();
7319 for (int compileUnitId = 0; compileUnitId < (int)coff.mCvModuleInfo.size(); compileUnitId++)
7320 coff.ParseCompileUnit(compileUnitId);
7321}
7322
7323NS_BF_DBG_END

Callers

nothing calls this directly

Calls 7

TryLoadPDBMethod · 0.80
CvParseIPIMethod · 0.80
ParseTypeDataMethod · 0.45
ParseGlobalsDataMethod · 0.45
ParseSymbolDataMethod · 0.45
sizeMethod · 0.45
ParseCompileUnitMethod · 0.45

Tested by

no test coverage detected