OLD | NEW |
(Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 #ifndef VM_DEBUGGER_H_ |
| 6 #define VM_DEBUGGER_H_ |
| 7 |
| 8 #include "vm/object.h" |
| 9 |
| 10 namespace dart { |
| 11 |
| 12 class Breakpoint; |
| 13 class Isolate; |
| 14 class ObjectPointerVisitor; |
| 15 |
| 16 class Debugger { |
| 17 public: |
| 18 Debugger(); |
| 19 |
| 20 void Initialize(Isolate* isolate); |
| 21 |
| 22 // Set breakpoint at closest location to function entry. |
| 23 void SetBreakpointAtEntry(const String& class_name, |
| 24 const String& function_name); |
| 25 |
| 26 void VisitObjectPointers(ObjectPointerVisitor* visitor); |
| 27 |
| 28 // Returns NULL if no breakpoint exists for the given address. |
| 29 Breakpoint* GetBreakpoint(uword breakpoint_address); |
| 30 |
| 31 private: |
| 32 void AddBreakpoint(Breakpoint* bpt); |
| 33 |
| 34 bool initialized_; |
| 35 Breakpoint* breakpoints_; |
| 36 DISALLOW_COPY_AND_ASSIGN(Debugger); |
| 37 }; |
| 38 |
| 39 |
| 40 } // namespace dart |
| 41 |
| 42 #endif // VM_DEBUGGER_H_ |
OLD | NEW |