| 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 "platform/address_sanitizer.h" | 9 #include "platform/address_sanitizer.h" |
| 10 | 10 |
| (...skipping 4222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4233 prev_bpt = curr_bpt; | 4233 prev_bpt = curr_bpt; |
| 4234 curr_bpt = curr_bpt->next(); | 4234 curr_bpt = curr_bpt->next(); |
| 4235 } | 4235 } |
| 4236 prev_loc = curr_loc; | 4236 prev_loc = curr_loc; |
| 4237 curr_loc = curr_loc->next(); | 4237 curr_loc = curr_loc->next(); |
| 4238 } | 4238 } |
| 4239 // breakpoint with bp_id does not exist, nothing to do. | 4239 // breakpoint with bp_id does not exist, nothing to do. |
| 4240 } | 4240 } |
| 4241 | 4241 |
| 4242 | 4242 |
| 4243 // Unlink code breakpoints from the the given breakpoint location. | 4243 // Unlink code breakpoints from the given breakpoint location. |
| 4244 // They will later be deleted when control returns from the pause event | 4244 // They will later be deleted when control returns from the pause event |
| 4245 // callback. Also, disable the breakpoint so it no longer fires if it | 4245 // callback. Also, disable the breakpoint so it no longer fires if it |
| 4246 // should be hit before it gets deleted. | 4246 // should be hit before it gets deleted. |
| 4247 void Debugger::UnlinkCodeBreakpoints(BreakpointLocation* bpt_location) { | 4247 void Debugger::UnlinkCodeBreakpoints(BreakpointLocation* bpt_location) { |
| 4248 ASSERT(bpt_location != NULL); | 4248 ASSERT(bpt_location != NULL); |
| 4249 CodeBreakpoint* curr_bpt = code_breakpoints_; | 4249 CodeBreakpoint* curr_bpt = code_breakpoints_; |
| 4250 while (curr_bpt != NULL) { | 4250 while (curr_bpt != NULL) { |
| 4251 if (curr_bpt->bpt_location() == bpt_location) { | 4251 if (curr_bpt->bpt_location() == bpt_location) { |
| 4252 curr_bpt->Disable(); | 4252 curr_bpt->Disable(); |
| 4253 curr_bpt->set_bpt_location(NULL); | 4253 curr_bpt->set_bpt_location(NULL); |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4367 | 4367 |
| 4368 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { | 4368 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { |
| 4369 ASSERT(bpt->next() == NULL); | 4369 ASSERT(bpt->next() == NULL); |
| 4370 bpt->set_next(code_breakpoints_); | 4370 bpt->set_next(code_breakpoints_); |
| 4371 code_breakpoints_ = bpt; | 4371 code_breakpoints_ = bpt; |
| 4372 } | 4372 } |
| 4373 | 4373 |
| 4374 #endif // !PRODUCT | 4374 #endif // !PRODUCT |
| 4375 | 4375 |
| 4376 } // namespace dart | 4376 } // namespace dart |
| OLD | NEW |