| 188 | } |
| 189 | |
| 190 | DbgModule* DebugTarget::HotLoad(const StringImpl& fileName, int hotIdx) |
| 191 | { |
| 192 | BP_ZONE("DebugTarget::HotLoad"); |
| 193 | |
| 194 | AutoDbgTime dbgTime("DebugTarget::HotLoad " + fileName); |
| 195 | |
| 196 | FileStream fileStream; |
| 197 | fileStream.mFP = _wfopen(UTF8Decode(fileName).c_str(), L"rb"); |
| 198 | if (fileStream.mFP == NULL) |
| 199 | { |
| 200 | mDebugger->OutputMessage(StrFormat("Debugger failed to open binary: %s\n", fileName.c_str())); |
| 201 | return NULL; |
| 202 | } |
| 203 | |
| 204 | DbgModule* dwarf = new COFF(this); |
| 205 | dwarf->mHotIdx = hotIdx; |
| 206 | dwarf->mDisplayName = GetFileName(fileName); |
| 207 | dwarf->mFilePath = fileName; |
| 208 | if (!dwarf->ReadCOFF(&fileStream, DbgModuleKind_HotObject)) |
| 209 | { |
| 210 | mDebugger->OutputMessage(StrFormat("Debugger failed to read binary: %s\n", fileName.c_str())); |
| 211 | delete dwarf; |
| 212 | return NULL; |
| 213 | } |
| 214 | AddDbgModule(dwarf); |
| 215 | return dwarf; |
| 216 | } |
| 217 | |
| 218 | DbgModule* DebugTarget::SetupDyn(const StringImpl& filePath, DataStream* stream, intptr imageBase) |
| 219 | { |
nothing calls this directly
no test coverage detected