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

Side by Side Diff: runtime/bin/dbg_connection_macos.cc

Issue 11642019: Implement debugger connection on Windows. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Enable debugger test on Windows Created 8 years 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 | « runtime/bin/dbg_connection_macos.h ('k') | runtime/bin/dbg_connection_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include <errno.h> 5 #include <errno.h>
6 #include <stdio.h> 6 #include <stdio.h>
7 #include <stdlib.h> 7 #include <stdlib.h>
8 #include <string.h> 8 #include <string.h>
9 #include <sys/event.h> 9 #include <sys/event.h>
10 #include <unistd.h> 10 #include <unistd.h>
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 150
151 void DebuggerConnectionImpl::StartHandler(int port_number) { 151 void DebuggerConnectionImpl::StartHandler(int port_number) {
152 ASSERT(DebuggerConnectionHandler::listener_fd_ != -1); 152 ASSERT(DebuggerConnectionHandler::listener_fd_ != -1);
153 SetupPollQueue(); 153 SetupPollQueue();
154 int result = 154 int result =
155 dart::Thread::Start(&DebuggerConnectionImpl::Handler, 0); 155 dart::Thread::Start(&DebuggerConnectionImpl::Handler, 0);
156 if (result != 0) { 156 if (result != 0) {
157 FATAL1("Failed to start debugger connection handler thread: %d\n", result); 157 FATAL1("Failed to start debugger connection handler thread: %d\n", result);
158 } 158 }
159 } 159 }
160
161
162 intptr_t DebuggerConnectionImpl::Send(intptr_t socket,
163 const char* buf,
164 int len) {
165 return TEMP_FAILURE_RETRY(write(socket, buf, len));
166 }
167
168
169 intptr_t DebuggerConnectionImpl::Receive(intptr_t socket, char* buf, int len) {
170 return TEMP_FAILURE_RETRY(read(socket, buf, len));
171 }
OLDNEW
« no previous file with comments | « runtime/bin/dbg_connection_macos.h ('k') | runtime/bin/dbg_connection_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698