Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(325)

Side by Side Diff: runtime/vm/debugger.h

Issue 8687037: Very first steps for a debugger (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698