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

Function PdbTestFile

IDEHelper/WinDebugger.cpp:9848–9869  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9846}
9847
9848static void PdbTestFile(WinDebugger* debugger, const StringImpl& path)
9849{
9850 if (!path.EndsWith(".PDB", StringImpl::CompareKind_OrdinalIgnoreCase))
9851 return;
9852
9853 OutputDebugStrF("Testing %s\n", path.c_str());
9854 COFF coffFile(debugger->mDebugTarget);
9855 uint8 wantGuid[16] = { 0 };
9856 if (!coffFile.TryLoadPDB(path, wantGuid, -1))
9857 return;
9858 if (!coffFile.mIs64Bit)
9859 return;
9860 coffFile.ParseTypeData();
9861 coffFile.ParseSymbolData();
9862 coffFile.ParseGlobalsData();
9863
9864 for (int i = 0; i < coffFile.mTypes.mSize; i++)
9865 coffFile.mTypes[i]->PopulateType();
9866
9867 for (int i = 0; i < coffFile.mCvModuleInfo.mSize; i++)
9868 coffFile.ParseCompileUnit(i);
9869}
9870
9871static void PdbTest(WinDebugger* debugger, const StringImpl& path)
9872{

Callers 2

PdbTestFunction · 0.85
EvaluateMethod · 0.85

Calls 8

TryLoadPDBMethod · 0.80
EndsWithMethod · 0.45
c_strMethod · 0.45
ParseTypeDataMethod · 0.45
ParseSymbolDataMethod · 0.45
ParseGlobalsDataMethod · 0.45
PopulateTypeMethod · 0.45
ParseCompileUnitMethod · 0.45

Tested by

no test coverage detected