| 147 | } |
| 148 | |
| 149 | TelnetDebugger::TelnetDebugger() |
| 150 | { |
| 151 | Con::addConsumer(debuggerConsumer); |
| 152 | |
| 153 | mAcceptPort = -1; |
| 154 | mAcceptSocket = NetSocket::INVALID; |
| 155 | mDebugSocket = NetSocket::INVALID; |
| 156 | |
| 157 | mState = NotConnected; |
| 158 | mCurPos = 0; |
| 159 | |
| 160 | mBreakpoints = NULL; |
| 161 | mBreakOnNextStatement = false; |
| 162 | mStackPopBreakIndex = -1; |
| 163 | mProgramPaused = false; |
| 164 | mWaitForClient = false; |
| 165 | |
| 166 | dStrncpy(mDebuggerPassword, "", PasswordMaxLength); |
| 167 | dStrncpy(mLineBuffer, "", sizeof(mLineBuffer)); |
| 168 | |
| 169 | // Add the version number in a global so that |
| 170 | // scripts can detect the presence of the |
| 171 | // "enhanced" debugger features. |
| 172 | Con::evaluatef( "$dbgVersion = %d;", Version ); |
| 173 | } |
| 174 | |
| 175 | TelnetDebugger::Breakpoint **TelnetDebugger::findBreakpoint(StringTableEntry fileName, S32 lineNumber) |
| 176 | { |
nothing calls this directly
no test coverage detected