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 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 intptr_t limitBreakpointId() { return next_id_; } | 577 intptr_t limitBreakpointId() { return next_id_; } |
578 | 578 |
579 private: | 579 private: |
580 enum ResumeAction { | 580 enum ResumeAction { |
581 kContinue, | 581 kContinue, |
582 kStepOver, | 582 kStepOver, |
583 kStepOut, | 583 kStepOut, |
584 kSingleStep | 584 kSingleStep |
585 }; | 585 }; |
586 | 586 |
587 static bool HasEventHandler(); | 587 static bool HasAnyEventHandler(); |
| 588 static bool HasDebugEventHandler(); |
588 void InvokeEventHandler(DebuggerEvent* event); | 589 void InvokeEventHandler(DebuggerEvent* event); |
589 | 590 |
590 void FindCompiledFunctions(const Script& script, | 591 void FindCompiledFunctions(const Script& script, |
591 intptr_t start_pos, | 592 intptr_t start_pos, |
592 intptr_t end_pos, | 593 intptr_t end_pos, |
593 GrowableObjectArray* function_list); | 594 GrowableObjectArray* function_list); |
594 RawFunction* FindBestFit(const Script& script, intptr_t token_pos); | 595 RawFunction* FindBestFit(const Script& script, intptr_t token_pos); |
595 RawFunction* FindInnermostClosure(const Function& function, | 596 RawFunction* FindInnermostClosure(const Function& function, |
596 intptr_t token_pos); | 597 intptr_t token_pos); |
597 intptr_t ResolveBreakpointPos(const Function& func, | 598 intptr_t ResolveBreakpointPos(const Function& func, |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
695 | 696 |
696 friend class Isolate; | 697 friend class Isolate; |
697 friend class BreakpointLocation; | 698 friend class BreakpointLocation; |
698 DISALLOW_COPY_AND_ASSIGN(Debugger); | 699 DISALLOW_COPY_AND_ASSIGN(Debugger); |
699 }; | 700 }; |
700 | 701 |
701 | 702 |
702 } // namespace dart | 703 } // namespace dart |
703 | 704 |
704 #endif // VM_DEBUGGER_H_ | 705 #endif // VM_DEBUGGER_H_ |
OLD | NEW |