| 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 #ifndef VM_DEBUGGER_H_ | 5 #ifndef VM_DEBUGGER_H_ |
| 6 #define VM_DEBUGGER_H_ | 6 #define VM_DEBUGGER_H_ |
| 7 | 7 |
| 8 #include "include/dart_debugger_api.h" | 8 #include "include/dart_debugger_api.h" |
| 9 | 9 |
| 10 #include "vm/object.h" | 10 #include "vm/object.h" |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 RawObject* GetInstanceField(const Class& cls, | 303 RawObject* GetInstanceField(const Class& cls, |
| 304 const String& field_name, | 304 const String& field_name, |
| 305 const Instance& object); | 305 const Instance& object); |
| 306 RawObject* GetStaticField(const Class& cls, | 306 RawObject* GetStaticField(const Class& cls, |
| 307 const String& field_name); | 307 const String& field_name); |
| 308 | 308 |
| 309 void SignalBpReached(); | 309 void SignalBpReached(); |
| 310 void SignalExceptionThrown(const Instance& exc); | 310 void SignalExceptionThrown(const Instance& exc); |
| 311 static void SignalIsolateEvent(EventType type); | 311 static void SignalIsolateEvent(EventType type); |
| 312 | 312 |
| 313 uword GetPatchedStubAddress(uword breakpoint_address); |
| 314 |
| 313 private: | 315 private: |
| 314 enum ResumeAction { | 316 enum ResumeAction { |
| 315 kContinue, | 317 kContinue, |
| 316 kStepOver, | 318 kStepOver, |
| 317 kStepInto, | 319 kStepInto, |
| 318 kStepOut | 320 kStepOut |
| 319 }; | 321 }; |
| 320 | 322 |
| 321 intptr_t ResolveBreakpointPos(const Function& func, | 323 intptr_t ResolveBreakpointPos(const Function& func, |
| 322 intptr_t first_token_pos, | 324 intptr_t first_token_pos, |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 | 387 |
| 386 friend class Isolate; | 388 friend class Isolate; |
| 387 friend class SourceBreakpoint; | 389 friend class SourceBreakpoint; |
| 388 DISALLOW_COPY_AND_ASSIGN(Debugger); | 390 DISALLOW_COPY_AND_ASSIGN(Debugger); |
| 389 }; | 391 }; |
| 390 | 392 |
| 391 | 393 |
| 392 } // namespace dart | 394 } // namespace dart |
| 393 | 395 |
| 394 #endif // VM_DEBUGGER_H_ | 396 #endif // VM_DEBUGGER_H_ |
| OLD | NEW |