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_tools_api.h" | 8 #include "include/dart_tools_api.h" |
9 | 9 |
10 #include "vm/object.h" | 10 #include "vm/object.h" |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 }; | 446 }; |
447 | 447 |
448 | 448 |
449 class Debugger { | 449 class Debugger { |
450 public: | 450 public: |
451 typedef void EventHandler(DebuggerEvent* event); | 451 typedef void EventHandler(DebuggerEvent* event); |
452 | 452 |
453 Debugger(); | 453 Debugger(); |
454 ~Debugger(); | 454 ~Debugger(); |
455 | 455 |
456 void Initialize(Isolate* isolate); | 456 void Initialize(Thread* thread); |
457 void NotifyIsolateCreated(); | 457 void NotifyIsolateCreated(); |
458 void Shutdown(); | 458 void Shutdown(); |
459 | 459 |
460 void NotifyCompilation(const Function& func); | 460 void NotifyCompilation(const Function& func); |
461 void NotifyDoneLoading(); | 461 void NotifyDoneLoading(); |
462 | 462 |
463 RawFunction* ResolveFunction(const Library& library, | 463 RawFunction* ResolveFunction(const Library& library, |
464 const String& class_name, | 464 const String& class_name, |
465 const String& function_name); | 465 const String& function_name); |
466 | 466 |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
643 const Library& lib, | 643 const Library& lib, |
644 const String& prefix, | 644 const String& prefix, |
645 bool include_private_fields); | 645 bool include_private_fields); |
646 | 646 |
647 // Handles any events which pause vm execution. Breakpoints, | 647 // Handles any events which pause vm execution. Breakpoints, |
648 // interrupts, etc. | 648 // interrupts, etc. |
649 void Pause(DebuggerEvent* event); | 649 void Pause(DebuggerEvent* event); |
650 | 650 |
651 void HandleSteppingRequest(DebuggerStackTrace* stack_trace); | 651 void HandleSteppingRequest(DebuggerStackTrace* stack_trace); |
652 | 652 |
| 653 Thread* thread_; |
653 Isolate* isolate_; | 654 Isolate* isolate_; |
654 Dart_Port isolate_id_; // A unique ID for the isolate in the debugger. | 655 Dart_Port isolate_id_; // A unique ID for the isolate in the debugger. |
655 bool initialized_; | 656 bool initialized_; |
656 | 657 |
657 // ID number generator. | 658 // ID number generator. |
658 intptr_t next_id_; | 659 intptr_t next_id_; |
659 | 660 |
660 BreakpointLocation* latent_locations_; | 661 BreakpointLocation* latent_locations_; |
661 BreakpointLocation* breakpoint_locations_; | 662 BreakpointLocation* breakpoint_locations_; |
662 CodeBreakpoint* code_breakpoints_; | 663 CodeBreakpoint* code_breakpoints_; |
(...skipping 29 matching lines...) Expand all Loading... |
692 | 693 |
693 friend class Isolate; | 694 friend class Isolate; |
694 friend class BreakpointLocation; | 695 friend class BreakpointLocation; |
695 DISALLOW_COPY_AND_ASSIGN(Debugger); | 696 DISALLOW_COPY_AND_ASSIGN(Debugger); |
696 }; | 697 }; |
697 | 698 |
698 | 699 |
699 } // namespace dart | 700 } // namespace dart |
700 | 701 |
701 #endif // VM_DEBUGGER_H_ | 702 #endif // VM_DEBUGGER_H_ |
OLD | NEW |