| 9846 | } |
| 9847 | |
| 9848 | static 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 | |
| 9871 | static void PdbTest(WinDebugger* debugger, const StringImpl& path) |
| 9872 | { |
no test coverage detected