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

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

Issue 9240014: Set breakpoint at url, line number (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 11 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 Breakpoint* SetBreakpointAtLine(const String& script_url,
130 intptr_t line_number);
129 131
130 void VisitObjectPointers(ObjectPointerVisitor* visitor); 132 void VisitObjectPointers(ObjectPointerVisitor* visitor);
131 133
132 // Returns NULL if no breakpoint exists for the given address. 134 // Returns NULL if no breakpoint exists for the given address.
133 Breakpoint* GetBreakpoint(uword breakpoint_address); 135 Breakpoint* GetBreakpoint(uword breakpoint_address);
134 136
135 // Called from Runtime when a breakpoint in Dart code is reached. 137 // Called from Runtime when a breakpoint in Dart code is reached.
136 void BreakpointCallback(); 138 void BreakpointCallback();
137 139
138 // Utility functions. 140 // Utility functions.
139 static const char* QualifiedFunctionName(const Function& func); 141 static const char* QualifiedFunctionName(const Function& func);
140 142
141 private: 143 private:
144 Breakpoint* SetBreakpoint(const Function& target_function,
145 intptr_t token_index);
142 void AddBreakpoint(Breakpoint* bpt); 146 void AddBreakpoint(Breakpoint* bpt);
143 147
144 bool initialized_; 148 bool initialized_;
145 BreakpointHandler* bp_handler_; 149 BreakpointHandler* bp_handler_;
146 Breakpoint* breakpoints_; 150 Breakpoint* breakpoints_;
147 DISALLOW_COPY_AND_ASSIGN(Debugger); 151 DISALLOW_COPY_AND_ASSIGN(Debugger);
148 }; 152 };
149 153
150 154
151 } // namespace dart 155 } // namespace dart
152 156
153 #endif // VM_DEBUGGER_H_ 157 #endif // VM_DEBUGGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698