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

Unified Diff: bin/dbg_connection.cc

Issue 11026011: Add isolate event handler setup in order to be able to propagate isolate (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 2 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 | « bin/dbg_connection.h ('k') | bin/main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/dbg_connection.cc
===================================================================
--- bin/dbg_connection.cc (revision 13129)
+++ bin/dbg_connection.cc (working copy)
@@ -998,6 +998,21 @@
}
+void DebuggerConnectionHandler::IsolateEventHandler(Dart_Isolate isolate,
+ Dart_IsolateEvent kind) {
+ WaitForConnection();
+#if 0
+ if (kind == kCreated) {
+ printf("Isolate created %p\n", isolate);
+ } else if (kind == kInterrupted) {
+ printf("Isolate interrupted %p\n", isolate);
+ } else if (kind == kShutdown) {
+ printf("Isolate shutdown %p\n", isolate);
+ }
+#endif
+}
+
+
void DebuggerConnectionHandler::SendExceptionEvent(
Dart_Handle exception,
Dart_StackTrace stack_trace) {
@@ -1078,6 +1093,7 @@
handler_started_ = true;
DebuggerConnectionImpl::StartHandler(port_number);
+ Dart_SetIsolateEventHandler(IsolateEventHandler);
Dart_SetBreakpointHandler(BreakpointHandler);
Dart_SetBreakpointResolvedHandler(BptResolvedHandler);
Dart_SetExceptionThrownHandler(ExceptionThrownHandler);
« no previous file with comments | « bin/dbg_connection.h ('k') | bin/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698