| 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 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1119 cbpt->Enable(); | 1119 cbpt->Enable(); |
| 1120 } else { | 1120 } else { |
| 1121 cbpt->Disable(); | 1121 cbpt->Disable(); |
| 1122 } | 1122 } |
| 1123 } | 1123 } |
| 1124 cbpt = cbpt->next(); | 1124 cbpt = cbpt->next(); |
| 1125 } | 1125 } |
| 1126 } | 1126 } |
| 1127 | 1127 |
| 1128 | 1128 |
| 1129 void Debugger::OneTimeBreakAtEntry(const Function& target_function) { |
| 1130 InstrumentForStepping(target_function); |
| 1131 } |
| 1132 |
| 1133 |
| 1129 SourceBreakpoint* Debugger::SetBreakpointAtEntry( | 1134 SourceBreakpoint* Debugger::SetBreakpointAtEntry( |
| 1130 const Function& target_function) { | 1135 const Function& target_function) { |
| 1131 ASSERT(!target_function.IsNull()); | 1136 ASSERT(!target_function.IsNull()); |
| 1132 return SetBreakpoint(target_function, | 1137 return SetBreakpoint(target_function, |
| 1133 target_function.token_pos(), | 1138 target_function.token_pos(), |
| 1134 target_function.end_token_pos()); | 1139 target_function.end_token_pos()); |
| 1135 } | 1140 } |
| 1136 | 1141 |
| 1137 | 1142 |
| 1138 SourceBreakpoint* Debugger::SetBreakpointAtLine(const String& script_url, | 1143 SourceBreakpoint* Debugger::SetBreakpointAtLine(const String& script_url, |
| (...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1723 } | 1728 } |
| 1724 | 1729 |
| 1725 | 1730 |
| 1726 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { | 1731 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { |
| 1727 ASSERT(bpt->next() == NULL); | 1732 ASSERT(bpt->next() == NULL); |
| 1728 bpt->set_next(code_breakpoints_); | 1733 bpt->set_next(code_breakpoints_); |
| 1729 code_breakpoints_ = bpt; | 1734 code_breakpoints_ = bpt; |
| 1730 } | 1735 } |
| 1731 | 1736 |
| 1732 } // namespace dart | 1737 } // namespace dart |
| OLD | NEW |