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

Unified Diff: runtime/vm/compiler.cc

Issue 9117042: Fix local variable info in debugger stack trace. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 11 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.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/compiler.cc
===================================================================
--- runtime/vm/compiler.cc (revision 3502)
+++ runtime/vm/compiler.cc (working copy)
@@ -186,11 +186,11 @@
String& var_name = String::Handle();
for (intptr_t i = 0; i < var_desc_length; i++) {
var_name = var_descriptors.GetName(i);
- intptr_t scope_id, ignore;
- var_descriptors.GetScopeInfo(i, &scope_id, &ignore, &ignore);
+ intptr_t scope_id, begin_pos, end_pos;
+ var_descriptors.GetScopeInfo(i, &scope_id, &begin_pos, &end_pos);
intptr_t slot = var_descriptors.GetSlotIndex(i);
- OS::Print(" var %s scope %ld offset %ld\n",
- var_name.ToCString(), scope_id, slot);
+ OS::Print(" var %s scope %ld (valid %d-%d) offset %ld\n",
+ var_name.ToCString(), scope_id, begin_pos, end_pos, slot);
}
OS::Print("}\n");
OS::Print("Exception Handlers for function '%s' {\n", function_fullname);
« no previous file with comments | « no previous file | runtime/vm/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698