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

Side by Side Diff: runtime/vm/debugger.cc

Issue 993613002: Implement 'print', 'up', 'down', and 'frame' commands in the Observatory debugger. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review Created 5 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/observatory/test/source_location_test.dart ('k') | runtime/vm/json_stream.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/debugger.h" 5 #include "vm/debugger.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 8
9 #include "vm/code_generator.h" 9 #include "vm/code_generator.h"
10 #include "vm/code_patcher.h" 10 #include "vm/code_patcher.h"
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 721
722 void ActivationFrame::VariableAt(intptr_t i, 722 void ActivationFrame::VariableAt(intptr_t i,
723 String* name, 723 String* name,
724 intptr_t* token_pos, 724 intptr_t* token_pos,
725 intptr_t* end_pos, 725 intptr_t* end_pos,
726 Object* value) { 726 Object* value) {
727 GetDescIndices(); 727 GetDescIndices();
728 ASSERT(i < desc_indices_.length()); 728 ASSERT(i < desc_indices_.length());
729 intptr_t desc_index = desc_indices_[i]; 729 intptr_t desc_index = desc_indices_[i];
730 ASSERT(name != NULL); 730 ASSERT(name != NULL);
731 *name ^= var_descriptors_.GetName(desc_index); 731
732 const String& tmp = String::Handle(var_descriptors_.GetName(desc_index));
733 *name ^= String::IdentifierPrettyName(tmp);
734
732 RawLocalVarDescriptors::VarInfo var_info; 735 RawLocalVarDescriptors::VarInfo var_info;
733 var_descriptors_.GetInfo(desc_index, &var_info); 736 var_descriptors_.GetInfo(desc_index, &var_info);
734 ASSERT(token_pos != NULL); 737 ASSERT(token_pos != NULL);
735 *token_pos = var_info.begin_pos; 738 *token_pos = var_info.begin_pos;
736 ASSERT(end_pos != NULL); 739 ASSERT(end_pos != NULL);
737 *end_pos = var_info.end_pos; 740 *end_pos = var_info.end_pos;
738 ASSERT(value != NULL); 741 ASSERT(value != NULL);
739 const int8_t kind = var_info.kind(); 742 const int8_t kind = var_info.kind();
740 if (kind == RawLocalVarDescriptors::kStackVar) { 743 if (kind == RawLocalVarDescriptors::kStackVar) {
741 *value = GetLocalInstanceVar(var_info.index()); 744 *value = GetLocalInstanceVar(var_info.index());
(...skipping 1893 matching lines...) Expand 10 before | Expand all | Expand 10 after
2635 } 2638 }
2636 2639
2637 2640
2638 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { 2641 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) {
2639 ASSERT(bpt->next() == NULL); 2642 ASSERT(bpt->next() == NULL);
2640 bpt->set_next(code_breakpoints_); 2643 bpt->set_next(code_breakpoints_);
2641 code_breakpoints_ = bpt; 2644 code_breakpoints_ = bpt;
2642 } 2645 }
2643 2646
2644 } // namespace dart 2647 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/observatory/test/source_location_test.dart ('k') | runtime/vm/json_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698