OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 case RemoteDebuggerEvent::kDisconnect: | 210 case RemoteDebuggerEvent::kDisconnect: |
211 terminate = true; | 211 terminate = true; |
212 break; | 212 break; |
213 | 213 |
214 default: | 214 default: |
215 UNREACHABLE(); | 215 UNREACHABLE(); |
216 } | 216 } |
217 delete event; | 217 delete event; |
218 } | 218 } |
219 | 219 |
| 220 delete conn_; |
| 221 conn_ = NULL; |
220 // Wait for the receiver thread to end. | 222 // Wait for the receiver thread to end. |
221 receiver.Join(); | 223 receiver.Join(); |
222 } | 224 } |
223 | 225 |
224 | 226 |
225 void RemoteDebugger::MessageReceived(i::SmartArrayPointer<char> message) { | 227 void RemoteDebugger::MessageReceived(i::SmartArrayPointer<char> message) { |
226 RemoteDebuggerEvent* event = | 228 RemoteDebuggerEvent* event = |
227 new RemoteDebuggerEvent(RemoteDebuggerEvent::kMessage, message); | 229 new RemoteDebuggerEvent(RemoteDebuggerEvent::kMessage, message); |
228 AddEvent(event); | 230 AddEvent(event); |
229 } | 231 } |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 // Pass the keyboard command to the main thread. | 365 // Pass the keyboard command to the main thread. |
364 remote_debugger_->KeyboardCommand( | 366 remote_debugger_->KeyboardCommand( |
365 i::SmartArrayPointer<char>(i::StrDup(command))); | 367 i::SmartArrayPointer<char>(i::StrDup(command))); |
366 } | 368 } |
367 } | 369 } |
368 | 370 |
369 | 371 |
370 } // namespace v8 | 372 } // namespace v8 |
371 | 373 |
372 #endif // ENABLE_DEBUGGER_SUPPORT | 374 #endif // ENABLE_DEBUGGER_SUPPORT |
OLD | NEW |