| 133 | |
| 134 | |
| 135 | int Debugger::EnterBreakState() |
| 136 | { |
| 137 | if (mInternalState != DIS_Break) |
| 138 | { |
| 139 | if (mInternalState != DIS_Starting) |
| 140 | // Send a response for the previous continuation command. |
| 141 | if (int err = SendContinuationResponse()) |
| 142 | return err; |
| 143 | // Remove keyboard/mouse hooks. |
| 144 | if (mDisabledHooks = GetActiveHooks()) |
| 145 | AddRemoveHooks(0, true); |
| 146 | // Set break state. |
| 147 | mInternalState = DIS_Break; |
| 148 | } |
| 149 | //else: no continuation command has been received so send no "response". |
| 150 | // Hooks were already removed and mDisabledHooks must not be overwritten. |
| 151 | return DEBUGGER_E_OK; |
| 152 | } |
| 153 | |
| 154 | |
| 155 | void Debugger::ExitBreakState() |
nothing calls this directly
no test coverage detected