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

Unified Diff: runtime/vm/debugger.cc

Issue 2994983002: Fix stepping in when paused in async functions. (Closed)
Patch Set: rebase Created 3 years, 4 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 | no next file » | 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 3516af5ef6b57d2d4d8dcba69da41731af856ec4..cbb528e255a4d9c65836fb0a060482c673536c94 100644
--- a/runtime/vm/debugger.cc
+++ b/runtime/vm/debugger.cc
@@ -3279,8 +3279,9 @@ void Debugger::SetAsyncSteppingFramePointer() {
if (!FLAG_async_debugger) {
return;
}
- if (stack_trace_->FrameAt(0)->function().IsAsyncClosure() ||
- stack_trace_->FrameAt(0)->function().IsAsyncGenClosure()) {
+ if ((stack_trace_->Length()) > 0 &&
+ (stack_trace_->FrameAt(0)->function().IsAsyncClosure() ||
+ stack_trace_->FrameAt(0)->function().IsAsyncGenClosure())) {
async_stepping_fp_ = stack_trace_->FrameAt(0)->fp();
} else {
async_stepping_fp_ = 0;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698