MCPcopy Create free account
hub / github.com/Vector35/debugger / Reset

Method Reset

core/adapters/dbgengadapter.cpp:270–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268
269
270void DbgEngAdapter::Reset()
271{
272 m_aboutToBeKilled = false;
273
274 if (!this->m_debugActive)
275 return;
276
277 // Free up the resources if the dbgsrv is launched by the adapter. Otherwise, the dbgsrv is launched outside BN,
278 // we should keep everything active.
279 if (m_dbgSrvLaunchedByAdapter)
280 {
281 SAFE_RELEASE(this->m_debugControl);
282 SAFE_RELEASE(this->m_debugDataSpaces);
283 SAFE_RELEASE(this->m_debugRegisters);
284 SAFE_RELEASE(this->m_debugSymbols);
285 SAFE_RELEASE(this->m_debugSystemObjects);
286
287 if (this->m_debugClient)
288 {
289 this->m_debugClient->EndSession(DEBUG_END_PASSIVE);
290 this->m_debugClient->EndProcessServer(m_server);
291 m_dbgSrvLaunchedByAdapter = false;
292 m_connectedToDebugServer = false;
293 m_server = 0;
294 }
295
296 SAFE_RELEASE(this->m_debugClient);
297 }
298
299 this->m_debugActive = false;
300}
301
302
303DbgEngAdapter::DbgEngAdapter(BinaryView* data) : DebugAdapter(data)

Callers 3

StartMethod · 0.95
AttachInternalMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected