| 333 | } |
| 334 | |
| 335 | void DebugSession::clearThreads(bool removeThreads, dap::optional<integer> reference) |
| 336 | { |
| 337 | if (reference) { |
| 338 | auto thread = threads.find(reference.value()); |
| 339 | if (thread != threads.end()) { |
| 340 | auto threadptr = thread->second; |
| 341 | threadptr->clearCallStack(); |
| 342 | threadptr->stoppedDetails = undefined; |
| 343 | threadptr->stopped = false; |
| 344 | |
| 345 | if (removeThreads) { |
| 346 | delete threadptr; |
| 347 | threadptr = nullptr; |
| 348 | } |
| 349 | } |
| 350 | } else { |
| 351 | for (auto thread : threads) { |
| 352 | auto threadptr = thread.second; |
| 353 | threadptr->clearCallStack(); |
| 354 | threadptr->stoppedDetails = undefined; |
| 355 | threadptr->stopped = false; |
| 356 | } |
| 357 | |
| 358 | if (removeThreads) { |
| 359 | threads.clear(); |
| 360 | threadIds.clear(); |
| 361 | // ExpressionContainer.allValues.clear(); |
| 362 | } |
| 363 | } |
| 364 | } |
| 365 | |
| 366 | void DebugSession::rawUpdate(IRawModelUpdate *data) |
| 367 | { |
nothing calls this directly
no test coverage detected