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 void SetBreakpoint(const String& class_name, const String& function_name); | |
srdjan
2011/11/29 22:26:00
Should this be SetBreakpointAtEntry?
siva
2011/11/30 00:00:47
I am presuming this will evolve into two functions
hausner
2011/11/30 01:17:05
Done.
hausner
2011/11/30 01:17:05
Yes, there will eventually be several methods, eg.
| |
22 | |
23 void VisitObjectPointers(ObjectPointerVisitor* visitor); | |
24 | |
25 Breakpoint* GetBreakpoint(uword breakpoint_address); | |
srdjan
2011/11/29 22:26:00
Maybe comment that it returns NULL if breakpoint i
hausner
2011/11/30 01:17:05
Done.
| |
26 | |
27 private: | |
srdjan
2011/11/29 22:26:00
DISALLOW_.....
hausner
2011/11/30 01:17:05
Done.
| |
28 void AddBreakpoint(Breakpoint* bpt); | |
29 | |
30 bool initialized_; | |
31 Breakpoint* breakpoints_; | |
32 }; | |
33 | |
34 | |
35 } // namespace dart | |
36 | |
37 #endif // VM_DEBUGGER_H_ | |
OLD | NEW |