Index: runtime/vm/isolate.h |
diff --git a/runtime/vm/isolate.h b/runtime/vm/isolate.h |
index 309b3eda48b616b8a9a3c0dc556e4800cf4c7619..bad6ffa85fbce82150dc122330418a0f0b9de87b 100644 |
--- a/runtime/vm/isolate.h |
+++ b/runtime/vm/isolate.h |
@@ -329,6 +329,19 @@ class Isolate : public BaseIsolate { |
return OFFSET_OF(Isolate, single_step_); |
} |
+ // Requests that the debugger resume execution. |
+ void Resume() { |
+ resume_request_ = true; |
+ } |
+ |
+ // Returns whether the vm service has requested that the debugger |
+ // resume execution. |
+ bool GetAndClearResumeRequest() { |
+ bool resume_request = resume_request_; |
+ resume_request_ = false; |
+ return resume_request; |
+ } |
+ |
Random* random() { return &random_; } |
Simulator* simulator() const { return simulator_; } |
@@ -552,6 +565,7 @@ class Isolate : public BaseIsolate { |
StubCode* stub_code_; |
Debugger* debugger_; |
bool single_step_; |
+ bool resume_request_; |
Random random_; |
Simulator* simulator_; |
LongJumpScope* long_jump_base_; |