| OLD | NEW |
| 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 "include/dart_debugger_api.h" | 5 #include "include/dart_debugger_api.h" |
| 6 | 6 |
| 7 #include "vm/dart_api_impl.h" | 7 #include "vm/dart_api_impl.h" |
| 8 #include "vm/dart_api_state.h" | 8 #include "vm/dart_api_state.h" |
| 9 #include "vm/debugger.h" | 9 #include "vm/debugger.h" |
| 10 #include "vm/isolate.h" | 10 #include "vm/isolate.h" |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 *breakpoint = reinterpret_cast<Dart_Breakpoint>(bpt); | 202 *breakpoint = reinterpret_cast<Dart_Breakpoint>(bpt); |
| 203 } | 203 } |
| 204 } else { | 204 } else { |
| 205 SetupErrorResult(&result); | 205 SetupErrorResult(&result); |
| 206 } | 206 } |
| 207 isolate->set_long_jump_base(base); | 207 isolate->set_long_jump_base(base); |
| 208 return result; | 208 return result; |
| 209 } | 209 } |
| 210 | 210 |
| 211 | 211 |
| 212 DART_EXPORT Dart_Handle Dart_DeleteBreakpoint( |
| 213 Dart_Breakpoint breakpoint_in) { |
| 214 Isolate* isolate = Isolate::Current(); |
| 215 DARTSCOPE(isolate); |
| 216 |
| 217 CHECK_AND_CAST(Breakpoint, breakpoint, breakpoint_in); |
| 218 isolate->debugger()->RemoveBreakpoint(breakpoint); |
| 219 return Api::True(); |
| 220 } |
| 221 |
| 212 } // namespace dart | 222 } // namespace dart |
| OLD | NEW |