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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 void SetStepOut() { resume_action_ = kStepOut; } | 252 void SetStepOut() { resume_action_ = kStepOut; } |
253 | 253 |
254 void SetExceptionPauseInfo(Dart_ExceptionPauseInfo pause_info); | 254 void SetExceptionPauseInfo(Dart_ExceptionPauseInfo pause_info); |
255 | 255 |
256 void VisitObjectPointers(ObjectPointerVisitor* visitor); | 256 void VisitObjectPointers(ObjectPointerVisitor* visitor); |
257 | 257 |
258 // Called from Runtime when a breakpoint in Dart code is reached. | 258 // Called from Runtime when a breakpoint in Dart code is reached. |
259 void BreakpointCallback(); | 259 void BreakpointCallback(); |
260 | 260 |
261 DebuggerStackTrace* StackTrace() const { return stack_trace_; } | 261 DebuggerStackTrace* StackTrace() const { return stack_trace_; } |
| 262 DebuggerStackTrace* CollectStackTrace(); |
262 | 263 |
263 RawArray* GetInstanceFields(const Instance& obj); | 264 RawArray* GetInstanceFields(const Instance& obj); |
264 RawArray* GetStaticFields(const Class& cls); | 265 RawArray* GetStaticFields(const Class& cls); |
265 RawArray* GetLibraryFields(const Library& lib); | 266 RawArray* GetLibraryFields(const Library& lib); |
266 RawArray* GetGlobalFields(const Library& lib); | 267 RawArray* GetGlobalFields(const Library& lib); |
267 | 268 |
268 intptr_t CacheObject(const Object& obj); | 269 intptr_t CacheObject(const Object& obj); |
269 RawObject* GetCachedObject(intptr_t obj_id); | 270 RawObject* GetCachedObject(intptr_t obj_id); |
270 bool IsValidObjectId(intptr_t obj_id); | 271 bool IsValidObjectId(intptr_t obj_id); |
271 | 272 |
(...skipping 30 matching lines...) Expand all Loading... |
302 intptr_t token_pos); | 303 intptr_t token_pos); |
303 CodeBreakpoint* MakeCodeBreakpoint(const Function& func, | 304 CodeBreakpoint* MakeCodeBreakpoint(const Function& func, |
304 intptr_t first_token_pos, | 305 intptr_t first_token_pos, |
305 intptr_t last_token_pos); | 306 intptr_t last_token_pos); |
306 | 307 |
307 // Returns NULL if no breakpoint exists for the given address. | 308 // Returns NULL if no breakpoint exists for the given address. |
308 CodeBreakpoint* GetCodeBreakpoint(uword breakpoint_address); | 309 CodeBreakpoint* GetCodeBreakpoint(uword breakpoint_address); |
309 | 310 |
310 void SyncBreakpoint(SourceBreakpoint* bpt); | 311 void SyncBreakpoint(SourceBreakpoint* bpt); |
311 | 312 |
312 DebuggerStackTrace* CollectStackTrace(); | |
313 void SignalBpResolved(SourceBreakpoint *bpt); | 313 void SignalBpResolved(SourceBreakpoint *bpt); |
314 | 314 |
315 bool IsDebuggable(const Function& func); | 315 bool IsDebuggable(const Function& func); |
316 | 316 |
317 intptr_t nextId() { return next_id_++; } | 317 intptr_t nextId() { return next_id_++; } |
318 | 318 |
319 bool ShouldPauseOnException(DebuggerStackTrace* stack_trace, | 319 bool ShouldPauseOnException(DebuggerStackTrace* stack_trace, |
320 const Object& exc); | 320 const Object& exc); |
321 | 321 |
322 void CollectLibraryFields(const GrowableObjectArray& field_list, | 322 void CollectLibraryFields(const GrowableObjectArray& field_list, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 intptr_t exc_pause_info_; | 355 intptr_t exc_pause_info_; |
356 | 356 |
357 friend class SourceBreakpoint; | 357 friend class SourceBreakpoint; |
358 DISALLOW_COPY_AND_ASSIGN(Debugger); | 358 DISALLOW_COPY_AND_ASSIGN(Debugger); |
359 }; | 359 }; |
360 | 360 |
361 | 361 |
362 } // namespace dart | 362 } // namespace dart |
363 | 363 |
364 #endif // VM_DEBUGGER_H_ | 364 #endif // VM_DEBUGGER_H_ |
OLD | NEW |