| 511 | } |
| 512 | |
| 513 | static void ContinueThreads(int specialThreadNumber, int continueCount) |
| 514 | { |
| 515 | gStepType = STEP_NONE; |
| 516 | |
| 517 | gShouldCallHandleBreakpoints = !gBreakpoints->IsEmpty() || (sExecutionTrace==exeTraceLines); |
| 518 | |
| 519 | gMutex.lock(); |
| 520 | |
| 521 | // All threads get continued, but specialThreadNumber only for count |
| 522 | std::list<DebuggerContext *>::iterator iter = gList.begin(); |
| 523 | while (iter != gList.end()) { |
| 524 | DebuggerContext *stack = *iter++; |
| 525 | if (stack->mThreadNumber == specialThreadNumber) { |
| 526 | stack->Continue(continueCount); |
| 527 | } |
| 528 | else { |
| 529 | stack->Continue(1); |
| 530 | } |
| 531 | } |
| 532 | |
| 533 | gMutex.unlock(); |
| 534 | } |
| 535 | |
| 536 | static void StepThread(int threadNumber, StepType stepType, int stepCount) |
| 537 | { |