| OLD | NEW |
| 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 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 726 ActivationFrame* frame = stack->FrameAt(i); | 726 ActivationFrame* frame = stack->FrameAt(i); |
| 727 OS::PrintErr("#%04" Pd " %s", i, frame->ToCString()); | 727 OS::PrintErr("#%04" Pd " %s", i, frame->ToCString()); |
| 728 } | 728 } |
| 729 | 729 |
| 730 OS::PrintErr("-------------------------\n" | 730 OS::PrintErr("-------------------------\n" |
| 731 "All frames...\n\n"); | 731 "All frames...\n\n"); |
| 732 StackFrameIterator iterator(false); | 732 StackFrameIterator iterator(false); |
| 733 StackFrame* frame = iterator.NextFrame(); | 733 StackFrame* frame = iterator.NextFrame(); |
| 734 intptr_t num = 0; | 734 intptr_t num = 0; |
| 735 while ((frame != NULL)) { | 735 while ((frame != NULL)) { |
| 736 OS::PrintErr("#%04" Pd " %s\n", num++, frame->ToCString()); |
| 736 frame = iterator.NextFrame(); | 737 frame = iterator.NextFrame(); |
| 737 OS::PrintErr("#%04" Pd " %s\n", num++, frame->ToCString()); | |
| 738 } | 738 } |
| 739 } | 739 } |
| 740 | 740 |
| 741 | 741 |
| 742 void ActivationFrame::VariableAt(intptr_t i, | 742 void ActivationFrame::VariableAt(intptr_t i, |
| 743 String* name, | 743 String* name, |
| 744 intptr_t* token_pos, | 744 intptr_t* token_pos, |
| 745 intptr_t* end_pos, | 745 intptr_t* end_pos, |
| 746 Instance* value) { | 746 Instance* value) { |
| 747 GetDescIndices(); | 747 GetDescIndices(); |
| (...skipping 1835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2583 } | 2583 } |
| 2584 | 2584 |
| 2585 | 2585 |
| 2586 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { | 2586 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { |
| 2587 ASSERT(bpt->next() == NULL); | 2587 ASSERT(bpt->next() == NULL); |
| 2588 bpt->set_next(code_breakpoints_); | 2588 bpt->set_next(code_breakpoints_); |
| 2589 code_breakpoints_ = bpt; | 2589 code_breakpoints_ = bpt; |
| 2590 } | 2590 } |
| 2591 | 2591 |
| 2592 } // namespace dart | 2592 } // namespace dart |
| OLD | NEW |