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

Unified 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, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/debugger.h
===================================================================
--- runtime/vm/debugger.h (revision 0)
+++ runtime/vm/debugger.h (revision 0)
@@ -0,0 +1,42 @@
+// 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);
+
+ // Set breakpoint at closest location to function entry.
+ void SetBreakpointAtEntry(const String& class_name,
+ const String& function_name);
+
+ void VisitObjectPointers(ObjectPointerVisitor* visitor);
+
+ // Returns NULL if no breakpoint exists for the given address.
+ Breakpoint* GetBreakpoint(uword breakpoint_address);
+
+ private:
+ void AddBreakpoint(Breakpoint* bpt);
+
+ bool initialized_;
+ Breakpoint* breakpoints_;
+ DISALLOW_COPY_AND_ASSIGN(Debugger);
+};
+
+
+} // namespace dart
+
+#endif // VM_DEBUGGER_H_
« 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