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

Side by Side Diff: runtime/bin/dbg_connection.h

Issue 15507004: Let debug target pick the debugger port (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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 | runtime/bin/dbg_connection.cc » ('j') | tests/standalone/debugger/debug_lib.dart » ('J')
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 #ifndef BIN_DBG_CONNECTION_H_ 5 #ifndef BIN_DBG_CONNECTION_H_
6 #define BIN_DBG_CONNECTION_H_ 6 #define BIN_DBG_CONNECTION_H_
7 7
8 #include "bin/builtin.h" 8 #include "bin/builtin.h"
9 #include "bin/utils.h" 9 #include "bin/utils.h"
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 // Accessors. 43 // Accessors.
44 int debug_fd() const { return debug_fd_; } 44 int debug_fd() const { return debug_fd_; }
45 45
46 // Return message id of current debug command message. 46 // Return message id of current debug command message.
47 int MessageId(); 47 int MessageId();
48 48
49 // Starts the native thread which listens for connections from 49 // Starts the native thread which listens for connections from
50 // debugger clients, reads and dispatches debug command messages 50 // debugger clients, reads and dispatches debug command messages
51 // from the client. 51 // from the client.
52 static void StartHandler(const char* address, int port_number); 52 static int StartHandler(const char* address, int port_number);
53 53
54 // Called by Isolates when they need to wait for a connection 54 // Called by Isolates when they need to wait for a connection
55 // from debugger clients. 55 // from debugger clients.
56 static void WaitForConnection(); 56 static void WaitForConnection();
57 57
58 // Sends a reply or an error message to a specific debugger client. 58 // Sends a reply or an error message to a specific debugger client.
59 static void SendMsg(int debug_fd, dart::TextBuffer* msg); 59 static void SendMsg(int debug_fd, dart::TextBuffer* msg);
60 static void SendError(int debug_fd, int msg_id, const char* err_msg); 60 static void SendError(int debug_fd, int msg_id, const char* err_msg);
61 61
62 // Sends an event message to all debugger clients that are connected. 62 // Sends an event message to all debugger clients that are connected.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 friend class DebuggerConnectionImpl; 106 friend class DebuggerConnectionImpl;
107 107
108 DISALLOW_IMPLICIT_CONSTRUCTORS(DebuggerConnectionHandler); 108 DISALLOW_IMPLICIT_CONSTRUCTORS(DebuggerConnectionHandler);
109 }; 109 };
110 110
111 } // namespace bin 111 } // namespace bin
112 } // namespace dart 112 } // namespace dart
113 113
114 #endif // BIN_DBG_CONNECTION_H_ 114 #endif // BIN_DBG_CONNECTION_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/dbg_connection.cc » ('j') | tests/standalone/debugger/debug_lib.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698