| 2079 | } |
| 2080 | |
| 2081 | int Debugger::SendContinuationResponse(char *aCommand, char *aStatus, char *aReason) |
| 2082 | { |
| 2083 | if (!aCommand) |
| 2084 | { |
| 2085 | switch (mInternalState) |
| 2086 | { |
| 2087 | case DIS_StepInto: aCommand = "step_into"; break; |
| 2088 | case DIS_StepOver: aCommand = "step_over"; break; |
| 2089 | case DIS_StepOut: aCommand = "step_out"; break; |
| 2090 | case DIS_Run: aCommand = "run"; break; |
| 2091 | // Seems more useful then silently failing: |
| 2092 | default: aCommand = ""; |
| 2093 | } |
| 2094 | } |
| 2095 | |
| 2096 | mResponseBuf.WriteF("<response command=\"%s\" status=\"%s\" reason=\"%s\" transaction_id=\"%e\"/>" |
| 2097 | , aCommand, aStatus, aReason, (LPCSTR)mContinuationTransactionId); |
| 2098 | |
| 2099 | return SendResponse(); |
| 2100 | } |
| 2101 | |
| 2102 | // Debugger::ReceiveCommand |
| 2103 | // |