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

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

Issue 9513005: Fix debugger stepping on Linux (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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/tests/vm/vm.status ('k') | no next file » | 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 "vm/code_index_table.h" 7 #include "vm/code_index_table.h"
8 #include "vm/code_generator.h" 8 #include "vm/code_generator.h"
9 #include "vm/code_patcher.h" 9 #include "vm/code_patcher.h"
10 #include "vm/compiler.h" 10 #include "vm/compiler.h"
(...skipping 12 matching lines...) Expand all
23 namespace dart { 23 namespace dart {
24 24
25 static const bool verbose = false; 25 static const bool verbose = false;
26 26
27 27
28 Breakpoint::Breakpoint(const Function& func, intptr_t pc_desc_index) 28 Breakpoint::Breakpoint(const Function& func, intptr_t pc_desc_index)
29 : function_(func.raw()), 29 : function_(func.raw()),
30 pc_desc_index_(pc_desc_index), 30 pc_desc_index_(pc_desc_index),
31 pc_(0), 31 pc_(0),
32 line_number_(-1), 32 line_number_(-1),
33 is_temporary_(false),
33 is_patched_(false), 34 is_patched_(false),
34 next_(NULL) { 35 next_(NULL) {
35 ASSERT(!func.HasOptimizedCode()); 36 ASSERT(!func.HasOptimizedCode());
36 Code& code = Code::Handle(func.unoptimized_code()); 37 Code& code = Code::Handle(func.unoptimized_code());
37 ASSERT(!code.IsNull()); // Function must be compiled. 38 ASSERT(!code.IsNull()); // Function must be compiled.
38 PcDescriptors& desc = PcDescriptors::Handle(code.pc_descriptors()); 39 PcDescriptors& desc = PcDescriptors::Handle(code.pc_descriptors());
39 ASSERT(pc_desc_index < desc.Length()); 40 ASSERT(pc_desc_index < desc.Length());
40 this->token_index_ = desc.TokenIndex(pc_desc_index); 41 this->token_index_ = desc.TokenIndex(pc_desc_index);
41 ASSERT(this->token_index_ > 0); 42 ASSERT(this->token_index_ > 0);
42 this->pc_ = desc.PC(pc_desc_index); 43 this->pc_ = desc.PC(pc_desc_index);
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after
838 839
839 840
840 void Debugger::RegisterBreakpoint(Breakpoint* bpt) { 841 void Debugger::RegisterBreakpoint(Breakpoint* bpt) {
841 ASSERT(bpt->next() == NULL); 842 ASSERT(bpt->next() == NULL);
842 bpt->set_next(this->breakpoints_); 843 bpt->set_next(this->breakpoints_);
843 this->breakpoints_ = bpt; 844 this->breakpoints_ = bpt;
844 } 845 }
845 846
846 847
847 } // namespace dart 848 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/tests/vm/vm.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698