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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 | 454 |
455 private: | 455 private: |
456 enum ResumeAction { | 456 enum ResumeAction { |
457 kContinue, | 457 kContinue, |
458 kStepOver, | 458 kStepOver, |
459 kStepOut, | 459 kStepOut, |
460 kSingleStep | 460 kSingleStep |
461 }; | 461 }; |
462 | 462 |
463 static bool HasEventHandler(); | 463 static bool HasEventHandler(); |
464 static void InvokeEventHandler(DebuggerEvent* event); | 464 void InvokeEventHandler(DebuggerEvent* event); |
465 | 465 |
466 void FindCompiledFunctions(const Script& script, | 466 void FindCompiledFunctions(const Script& script, |
467 intptr_t start_pos, | 467 intptr_t start_pos, |
468 intptr_t end_pos, | 468 intptr_t end_pos, |
469 GrowableObjectArray* function_list); | 469 GrowableObjectArray* function_list); |
470 RawFunction* FindBestFit(const Script& script, intptr_t token_pos); | 470 RawFunction* FindBestFit(const Script& script, intptr_t token_pos); |
471 RawFunction* FindInnermostClosure(const Function& function, | 471 RawFunction* FindInnermostClosure(const Function& function, |
472 intptr_t token_pos); | 472 intptr_t token_pos); |
473 intptr_t ResolveBreakpointPos(const Function& func, | 473 intptr_t ResolveBreakpointPos(const Function& func, |
474 intptr_t requested_token_pos, | 474 intptr_t requested_token_pos, |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 | 564 |
565 friend class Isolate; | 565 friend class Isolate; |
566 friend class SourceBreakpoint; | 566 friend class SourceBreakpoint; |
567 DISALLOW_COPY_AND_ASSIGN(Debugger); | 567 DISALLOW_COPY_AND_ASSIGN(Debugger); |
568 }; | 568 }; |
569 | 569 |
570 | 570 |
571 } // namespace dart | 571 } // namespace dart |
572 | 572 |
573 #endif // VM_DEBUGGER_H_ | 573 #endif // VM_DEBUGGER_H_ |
OLD | NEW |