| 268 | |
| 269 | |
| 270 | void 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 | |
| 303 | DbgEngAdapter::DbgEngAdapter(BinaryView* data) : DebugAdapter(data) |
no outgoing calls
no test coverage detected