| 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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 intptr_t token_pos); | 327 intptr_t token_pos); |
| 328 CodeBreakpoint* MakeCodeBreakpoint(const Function& func, | 328 CodeBreakpoint* MakeCodeBreakpoint(const Function& func, |
| 329 intptr_t first_token_pos, | 329 intptr_t first_token_pos, |
| 330 intptr_t last_token_pos); | 330 intptr_t last_token_pos); |
| 331 | 331 |
| 332 // Returns NULL if no breakpoint exists for the given address. | 332 // Returns NULL if no breakpoint exists for the given address. |
| 333 CodeBreakpoint* GetCodeBreakpoint(uword breakpoint_address); | 333 CodeBreakpoint* GetCodeBreakpoint(uword breakpoint_address); |
| 334 | 334 |
| 335 void SyncBreakpoint(SourceBreakpoint* bpt); | 335 void SyncBreakpoint(SourceBreakpoint* bpt); |
| 336 | 336 |
| 337 DebuggerStackTrace* CollectStackTrace(); | 337 static DebuggerStackTrace* CollectStackTrace(); |
| 338 void SignalBpResolved(SourceBreakpoint *bpt); | 338 void SignalBpResolved(SourceBreakpoint *bpt); |
| 339 | 339 |
| 340 bool IsDebuggable(const Function& func); | 340 bool IsDebuggable(const Function& func); |
| 341 | 341 |
| 342 intptr_t nextId() { return next_id_++; } | 342 intptr_t nextId() { return next_id_++; } |
| 343 | 343 |
| 344 bool ShouldPauseOnException(DebuggerStackTrace* stack_trace, | 344 bool ShouldPauseOnException(DebuggerStackTrace* stack_trace, |
| 345 const Instance& exc); | 345 const Instance& exc); |
| 346 | 346 |
| 347 void CollectLibraryFields(const GrowableObjectArray& field_list, | 347 void CollectLibraryFields(const GrowableObjectArray& field_list, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 374 // Do not call back to breakpoint handler if this flag is set. | 374 // Do not call back to breakpoint handler if this flag is set. |
| 375 // Effectively this means ignoring breakpoints. Set when Dart code may | 375 // Effectively this means ignoring breakpoints. Set when Dart code may |
| 376 // be run as a side effect of getting values of fields. | 376 // be run as a side effect of getting values of fields. |
| 377 bool ignore_breakpoints_; | 377 bool ignore_breakpoints_; |
| 378 | 378 |
| 379 intptr_t exc_pause_info_; | 379 intptr_t exc_pause_info_; |
| 380 | 380 |
| 381 static BreakpointHandler* bp_handler_; | 381 static BreakpointHandler* bp_handler_; |
| 382 static EventHandler* event_handler_; | 382 static EventHandler* event_handler_; |
| 383 | 383 |
| 384 friend class Isolate; |
| 384 friend class SourceBreakpoint; | 385 friend class SourceBreakpoint; |
| 385 DISALLOW_COPY_AND_ASSIGN(Debugger); | 386 DISALLOW_COPY_AND_ASSIGN(Debugger); |
| 386 }; | 387 }; |
| 387 | 388 |
| 388 | 389 |
| 389 } // namespace dart | 390 } // namespace dart |
| 390 | 391 |
| 391 #endif // VM_DEBUGGER_H_ | 392 #endif // VM_DEBUGGER_H_ |
| OLD | NEW |