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

Unified Diff: runtime/vm/json_stream.h

Issue 113513004: Handle vmservice messages while at breakpoint. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years 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
Index: runtime/vm/json_stream.h
===================================================================
--- runtime/vm/json_stream.h (revision 31074)
+++ runtime/vm/json_stream.h (working copy)
@@ -15,6 +15,7 @@
class JSONArray;
class JSONObject;
class Object;
+class SourceBreakpoint;
hausner 2013/12/17 21:04:33 Ouch. The debugger starts creeping into other part
turnidge 2013/12/17 21:50:01 The design of JSONStream is such that it needs a s
class JSONStream : ValueObject {
public:
@@ -40,6 +41,8 @@
return option_values_[i];
}
+ const char* LookupOption(const char* key) const;
+
private:
void Clear();
@@ -56,6 +59,7 @@
void PrintfValue(const char* format, ...) PRINTF_ATTRIBUTE(2, 3);
void PrintValue(const Object& o, bool ref = true);
void PrintValue(const Field& f, const Instance& instance, bool ref = true);
+ void PrintValue(const SourceBreakpoint* bpt);
void PrintPropertyBool(const char* name, bool b);
void PrintProperty(const char* name, intptr_t i);
@@ -154,6 +158,9 @@
bool ref = true) const {
stream_->PrintValue(field, instance, ref);
}
+ void AddValue(const SourceBreakpoint* bpt) const {
+ stream_->PrintValue(bpt);
+ }
void AddValueF(const char* format, ...) const PRINTF_ATTRIBUTE(2, 3);
private:

Powered by Google App Engine
This is Rietveld 408576698