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

Method HotLoad

IDEHelper/DebugTarget.cpp:190–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190DbgModule* 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
218DbgModule* DebugTarget::SetupDyn(const StringImpl& filePath, DataStream* stream, intptr imageBase)
219{

Callers

nothing calls this directly

Calls 3

ReadCOFFMethod · 0.80
c_strMethod · 0.45
OutputMessageMethod · 0.45

Tested by

no test coverage detected