Index: runtime/vm/debugger.h |
=================================================================== |
--- runtime/vm/debugger.h (revision 31232) |
+++ runtime/vm/debugger.h (working copy) |
@@ -15,6 +15,8 @@ |
class ActiveVariables; |
class CodeBreakpoint; |
class Isolate; |
+class JSONArray; |
+class JSONStream; |
class ObjectPointerVisitor; |
class RemoteObjectCache; |
class SourceBreakpoint; |
@@ -36,12 +38,16 @@ |
RawString* SourceUrl(); |
intptr_t LineNumber(); |
- void GetCodeLocation(Library* lib, Script* script, intptr_t* token_pos); |
+ void GetCodeLocation(Library* lib, |
+ Script* script, |
+ intptr_t* token_pos) const; |
void Enable(); |
void Disable(); |
bool IsEnabled() const { return is_enabled_; } |
+ void PrintToJSONStream(JSONStream* stream) const; |
+ |
private: |
void VisitObjectPointers(ObjectPointerVisitor* visitor); |
@@ -352,6 +358,8 @@ |
uword GetPatchedStubAddress(uword breakpoint_address); |
+ void PrintBreakpointsToJSONArray(JSONArray* jsarr) const; |
+ |
static bool IsDebuggable(const Function& func); |
private: |