Chromium Code Reviews| Index: runtime/vm/debugger.h |
| =================================================================== |
| --- runtime/vm/debugger.h (revision 0) |
| +++ runtime/vm/debugger.h (revision 0) |
| @@ -0,0 +1,37 @@ |
| +// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| +// for details. All rights reserved. Use of this source code is governed by a |
| +// BSD-style license that can be found in the LICENSE file. |
| + |
| +#ifndef VM_DEBUGGER_H_ |
| +#define VM_DEBUGGER_H_ |
| + |
| +#include "vm/object.h" |
| + |
| +namespace dart { |
| + |
| +class Breakpoint; |
| +class Isolate; |
| +class ObjectPointerVisitor; |
| + |
| +class Debugger { |
| + public: |
| + Debugger(); |
| + |
| + void Initialize(Isolate* isolate); |
| + 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.
|
| + |
| + void VisitObjectPointers(ObjectPointerVisitor* visitor); |
| + |
| + 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.
|
| + |
| + private: |
|
srdjan
2011/11/29 22:26:00
DISALLOW_.....
hausner
2011/11/30 01:17:05
Done.
|
| + void AddBreakpoint(Breakpoint* bpt); |
| + |
| + bool initialized_; |
| + Breakpoint* breakpoints_; |
| +}; |
| + |
| + |
| +} // namespace dart |
| + |
| +#endif // VM_DEBUGGER_H_ |