OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 "include/dart_debugger_api.h" | 8 #include "include/dart_debugger_api.h" |
9 | 9 |
10 #include "vm/object.h" | 10 #include "vm/object.h" |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 } | 196 } |
197 private: | 197 private: |
198 void AddActivation(ActivationFrame* frame); | 198 void AddActivation(ActivationFrame* frame); |
199 ZoneGrowableArray<ActivationFrame*> trace_; | 199 ZoneGrowableArray<ActivationFrame*> trace_; |
200 | 200 |
201 friend class Debugger; | 201 friend class Debugger; |
202 DISALLOW_COPY_AND_ASSIGN(DebuggerStackTrace); | 202 DISALLOW_COPY_AND_ASSIGN(DebuggerStackTrace); |
203 }; | 203 }; |
204 | 204 |
205 | 205 |
206 typedef void BreakpointHandler(SourceBreakpoint* bpt, | 206 typedef void BreakpointHandler(Dart_Port isolate_id, |
| 207 SourceBreakpoint* bpt, |
207 DebuggerStackTrace* stack); | 208 DebuggerStackTrace* stack); |
208 | 209 |
209 | 210 |
210 class Debugger { | 211 class Debugger { |
211 public: | 212 public: |
212 enum EventType { | 213 enum EventType { |
213 kBreakpointReached = 1, | 214 kBreakpointReached = 1, |
214 kBreakpointResolved = 2, | 215 kBreakpointResolved = 2, |
215 kExceptionThrown = 3, | 216 kExceptionThrown = 3, |
216 kIsolateCreated = 4, | 217 kIsolateCreated = 4, |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 static EventHandler* event_handler_; | 367 static EventHandler* event_handler_; |
367 | 368 |
368 friend class SourceBreakpoint; | 369 friend class SourceBreakpoint; |
369 DISALLOW_COPY_AND_ASSIGN(Debugger); | 370 DISALLOW_COPY_AND_ASSIGN(Debugger); |
370 }; | 371 }; |
371 | 372 |
372 | 373 |
373 } // namespace dart | 374 } // namespace dart |
374 | 375 |
375 #endif // VM_DEBUGGER_H_ | 376 #endif // VM_DEBUGGER_H_ |
OLD | NEW |