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

Unified Diff: runtime/bin/dbg_connection.h

Issue 271153002: Add pause/resume for isolates in vmservice/observatory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: gen js Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/bin/dbg_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/dbg_connection.h
diff --git a/runtime/bin/dbg_connection.h b/runtime/bin/dbg_connection.h
index 8fd0860a5a57ba1071c1a3de42c9b305c50542c4..7efc3f2eb5e12bafd5620347a4f8d1adf9caf3cd 100644
--- a/runtime/bin/dbg_connection.h
+++ b/runtime/bin/dbg_connection.h
@@ -51,6 +51,11 @@ class DebuggerConnectionHandler {
// from the client.
static int StartHandler(const char* address, int port_number);
+ // Initializes the parts of the debugger which are needed by the vm
+ // service. This function should only be called when StartHandler
+ // is not called.
+ static void InitForVmService();
+
// Called by Isolates when they need to wait for a connection
// from debugger clients.
static void WaitForConnection();
@@ -99,6 +104,10 @@ class DebuggerConnectionHandler {
// a debugger to be attached when that is requested on the command line.
static dart::Monitor* handler_lock_;
+ static bool IsListening() {
+ return listener_fd_ != -1;
+ }
+
// The socket that is listening for incoming debugger connections.
// This descriptor is created and closed by a native thread.
static int listener_fd_;
« no previous file with comments | « no previous file | runtime/bin/dbg_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698