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

Unified Diff: runtime/vm/dart_api_impl.cc

Issue 866663003: Add a working command line debugger to Observatory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 | « runtime/observatory/test/debugging_test.dart ('k') | runtime/vm/debugger.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_api_impl.cc
diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc
index 2410ba4621f63325c2a12075c6824380da71e9a0..ccae5e280d8b0810e03f9b7c9f0041b91d768899 100644
--- a/runtime/vm/dart_api_impl.cc
+++ b/runtime/vm/dart_api_impl.cc
@@ -1565,7 +1565,12 @@ DART_EXPORT bool Dart_HandleServiceMessages() {
ASSERT(isolate->GetAndClearResumeRequest() == false);
isolate->message_handler()->HandleOOBMessages();
- return isolate->GetAndClearResumeRequest();
+ bool resume = isolate->GetAndClearResumeRequest();
+ if (resume && Service::NeedsDebuggerEvents()) {
+ DebuggerEvent resumeEvent(isolate, DebuggerEvent::kIsolateResumed);
+ Service::HandleDebuggerEvent(&resumeEvent);
+ }
+ return resume;
}
« no previous file with comments | « runtime/observatory/test/debugging_test.dart ('k') | runtime/vm/debugger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698