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

Unified Diff: runtime/vm/debugger.cc

Issue 27038005: Fix a typo in debugger.cc that was causing variable bounds checking to (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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/debugger_api_impl_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/debugger.cc
===================================================================
--- runtime/vm/debugger.cc (revision 28592)
+++ runtime/vm/debugger.cc (working copy)
@@ -597,16 +597,16 @@
}
} else {
ASSERT(level_diff > 0);
- Context& ctx = Context::Handle(ctx_.raw());
- while (level_diff > 0 && !ctx.IsNull()) {
+ Context& var_ctx = Context::Handle(ctx_.raw());
+ while (level_diff > 0 && !var_ctx.IsNull()) {
level_diff--;
- ctx = ctx.parent();
+ var_ctx = var_ctx.parent();
}
// TODO(12767) : Need to ensure that we end up with the correct context
// here so that this check can be assert.
- if (!ctx.IsNull() &&
- ((ctx_slot < ctx_.num_variables()) && (ctx_slot >= 0))) {
- *value = ctx.At(ctx_slot);
+ if (!var_ctx.IsNull() &&
+ ((ctx_slot < var_ctx.num_variables()) && (ctx_slot >= 0))) {
+ *value = var_ctx.At(ctx_slot);
} else {
*value = Symbols::New("<unknown>");
}
« no previous file with comments | « no previous file | runtime/vm/debugger_api_impl_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698