| 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 "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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 | 159 |
| 160 DART_EXPORT Dart_Handle Dart_SetExceptionPauseInfo( | 160 DART_EXPORT Dart_Handle Dart_SetExceptionPauseInfo( |
| 161 Dart_ExceptionPauseInfo pause_info) { | 161 Dart_ExceptionPauseInfo pause_info) { |
| 162 Isolate* isolate = Isolate::Current(); | 162 Isolate* isolate = Isolate::Current(); |
| 163 DARTSCOPE(isolate); | 163 DARTSCOPE(isolate); |
| 164 isolate->debugger()->SetExceptionPauseInfo(pause_info); | 164 isolate->debugger()->SetExceptionPauseInfo(pause_info); |
| 165 return Api::True(isolate); | 165 return Api::True(isolate); |
| 166 } | 166 } |
| 167 | 167 |
| 168 | 168 |
| 169 DART_EXPORT Dart_ExceptionPauseInfo Dart_GetExceptionPauseInfo() { |
| 170 Isolate* isolate = Isolate::Current(); |
| 171 DARTSCOPE(isolate); |
| 172 return isolate->debugger()->GetExceptionPauseInfo(); |
| 173 } |
| 174 |
| 175 |
| 169 DART_EXPORT Dart_Handle Dart_GetStackTrace(Dart_StackTrace* trace) { | 176 DART_EXPORT Dart_Handle Dart_GetStackTrace(Dart_StackTrace* trace) { |
| 170 Isolate* isolate = Isolate::Current(); | 177 Isolate* isolate = Isolate::Current(); |
| 171 DARTSCOPE(isolate); | 178 DARTSCOPE(isolate); |
| 172 CHECK_NOT_NULL(trace); | 179 CHECK_NOT_NULL(trace); |
| 173 *trace = reinterpret_cast<Dart_StackTrace>(isolate->debugger()->StackTrace()); | 180 *trace = reinterpret_cast<Dart_StackTrace>(isolate->debugger()->StackTrace()); |
| 174 return Api::True(isolate); | 181 return Api::True(isolate); |
| 175 } | 182 } |
| 176 | 183 |
| 177 | 184 |
| 178 DART_EXPORT Dart_Handle Dart_ActivationFrameInfo( | 185 DART_EXPORT Dart_Handle Dart_ActivationFrameInfo( |
| (...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 684 if (lib.IsNull()) { | 691 if (lib.IsNull()) { |
| 685 return Api::NewError("%s: %"Pd" is not a valid library id", | 692 return Api::NewError("%s: %"Pd" is not a valid library id", |
| 686 CURRENT_FUNC, library_id); | 693 CURRENT_FUNC, library_id); |
| 687 } | 694 } |
| 688 lib.set_debuggable(is_debuggable); | 695 lib.set_debuggable(is_debuggable); |
| 689 return Api::True(isolate); | 696 return Api::True(isolate); |
| 690 } | 697 } |
| 691 | 698 |
| 692 | 699 |
| 693 } // namespace dart | 700 } // namespace dart |
| OLD | NEW |