Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(295)

Side by Side Diff: src/d8-debug.cc

Issue 198073004: Delete socket connection after debugger input loop ends. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698