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

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
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_

Powered by Google App Engine
This is Rietveld 408576698