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

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

Issue 9169102: Add Dart_PropagateError. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 10 months 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
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_DEBUGGER_H_ 5 #ifndef VM_DEBUGGER_H_
6 #define VM_DEBUGGER_H_ 6 #define VM_DEBUGGER_H_
7 7
8 #include "vm/object.h" 8 #include "vm/object.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 void Initialize(Isolate* isolate); 118 void Initialize(Isolate* isolate);
119 bool IsActive(); 119 bool IsActive();
120 120
121 void SetBreakpointHandler(BreakpointHandler* handler); 121 void SetBreakpointHandler(BreakpointHandler* handler);
122 122
123 RawFunction* ResolveFunction(const Library& library, 123 RawFunction* ResolveFunction(const Library& library,
124 const String& class_name, 124 const String& class_name,
125 const String& function_name); 125 const String& function_name);
126 126
127 // Set breakpoint at closest location to function entry. 127 // Set breakpoint at closest location to function entry.
128 Breakpoint* SetBreakpointAtEntry(const Function& target_function); 128 Breakpoint* SetBreakpointAtEntry(const Function& target_function,
129 Error* error);
129 130
130 void VisitObjectPointers(ObjectPointerVisitor* visitor); 131 void VisitObjectPointers(ObjectPointerVisitor* visitor);
131 132
132 // Returns NULL if no breakpoint exists for the given address. 133 // Returns NULL if no breakpoint exists for the given address.
133 Breakpoint* GetBreakpoint(uword breakpoint_address); 134 Breakpoint* GetBreakpoint(uword breakpoint_address);
134 135
135 // Called from Runtime when a breakpoint in Dart code is reached. 136 // Called from Runtime when a breakpoint in Dart code is reached.
136 void BreakpointCallback(); 137 void BreakpointCallback();
137 138
138 // Utility functions. 139 // Utility functions.
139 static const char* QualifiedFunctionName(const Function& func); 140 static const char* QualifiedFunctionName(const Function& func);
140 141
141 private: 142 private:
142 void AddBreakpoint(Breakpoint* bpt); 143 void AddBreakpoint(Breakpoint* bpt);
143 144
144 bool initialized_; 145 bool initialized_;
145 BreakpointHandler* bp_handler_; 146 BreakpointHandler* bp_handler_;
146 Breakpoint* breakpoints_; 147 Breakpoint* breakpoints_;
147 DISALLOW_COPY_AND_ASSIGN(Debugger); 148 DISALLOW_COPY_AND_ASSIGN(Debugger);
148 }; 149 };
149 150
150 151
151 } // namespace dart 152 } // namespace dart
152 153
153 #endif // VM_DEBUGGER_H_ 154 #endif // VM_DEBUGGER_H_
OLDNEW
« no previous file with comments | « runtime/vm/dart_entry_test.cc ('k') | runtime/vm/debugger.cc » ('j') | runtime/vm/exceptions.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698