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

Unified Diff: runtime/vm/debugger.cc

Issue 1142283003: Ensure that the ThreadInterrupter is awake after debugging (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | runtime/vm/message_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/debugger.cc
diff --git a/runtime/vm/debugger.cc b/runtime/vm/debugger.cc
index 954aa8215c35cb2a349707a17fba7fa320d113f1..30ba2d992153e33fbcb6f84bfa1c9c2eef257bca 100644
--- a/runtime/vm/debugger.cc
+++ b/runtime/vm/debugger.cc
@@ -25,6 +25,7 @@
#include "vm/stack_frame.h"
#include "vm/stub_code.h"
#include "vm/symbols.h"
+#include "vm/thread_interrupter.h"
#include "vm/visitor.h"
@@ -2148,6 +2149,11 @@ void Debugger::HandleSteppingRequest(DebuggerStackTrace* stack_trace) {
}
}
}
+ if (!isolate_->single_step()) {
+ // We are no longer single stepping, make sure that the ThreadInterrupter
+ // is awake.
+ ThreadInterrupter::WakeUp();
+ }
}
« no previous file with comments | « no previous file | runtime/vm/message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698