| 7289 | } |
| 7290 | |
| 7291 | NS_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 | |
| 7308 | void 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 | |
| 7323 | NS_BF_DBG_END |
nothing calls this directly
no test coverage detected