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

Unified Diff: runtime/vm/service_event.cc

Issue 1152753005: Service cleanups... (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update docs. Tweak TypeRef and BoundedType. Created 5 years, 6 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/vm/service/service.md ('k') | runtime/vm/service_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/service_event.cc
diff --git a/runtime/vm/service_event.cc b/runtime/vm/service_event.cc
index a60ca8b5fa329a76ab4b1da95972ddef32683646..0583da4f7ccb8511378b8cc7fd3f42dad5da3a0c 100644
--- a/runtime/vm/service_event.cc
+++ b/runtime/vm/service_event.cc
@@ -96,8 +96,17 @@ void ServiceEvent::PrintJSON(JSONStream* js) const {
jsobj.AddProperty("type", "Event");
jsobj.AddProperty("kind", EventTypeToCString(type()));
jsobj.AddProperty("isolate", isolate());
- if (breakpoint() != NULL) {
- jsobj.AddProperty("breakpoint", breakpoint());
+ if (type() == kPauseBreakpoint) {
+ JSONArray jsarr(&jsobj, "pauseBreakpoints");
+ // TODO(rmacnak): If we are paused at more than one breakpoint,
+ // provide it here.
+ if (breakpoint() != NULL) {
+ jsarr.AddValue(breakpoint());
+ }
+ } else {
+ if (breakpoint() != NULL) {
+ jsobj.AddProperty("breakpoint", breakpoint());
+ }
}
if (top_frame() != NULL) {
JSONObject jsFrame(&jsobj, "topFrame");
« no previous file with comments | « runtime/vm/service/service.md ('k') | runtime/vm/service_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698