| 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 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 549 | 549 |
| 550 // Utility functions. | 550 // Utility functions. |
| 551 static const char* QualifiedFunctionName(const Function& func); | 551 static const char* QualifiedFunctionName(const Function& func); |
| 552 | 552 |
| 553 RawObject* GetInstanceField(const Class& cls, | 553 RawObject* GetInstanceField(const Class& cls, |
| 554 const String& field_name, | 554 const String& field_name, |
| 555 const Instance& object); | 555 const Instance& object); |
| 556 RawObject* GetStaticField(const Class& cls, | 556 RawObject* GetStaticField(const Class& cls, |
| 557 const String& field_name); | 557 const String& field_name); |
| 558 | 558 |
| 559 void SignalBpReached(); | 559 RawError* SignalBpReached(); |
| 560 void DebuggerStepCallback(); | 560 RawError* DebuggerStepCallback(); |
| 561 RawError* SignalIsolateInterrupted(); |
| 561 | 562 |
| 562 void BreakHere(const String& msg); | 563 void BreakHere(const String& msg); |
| 563 | 564 |
| 564 void SignalExceptionThrown(const Instance& exc); | 565 void SignalExceptionThrown(const Instance& exc); |
| 565 void SignalIsolateEvent(DebuggerEvent::EventType type); | 566 void SignalIsolateEvent(DebuggerEvent::EventType type); |
| 566 static void SignalIsolateInterrupted(); | |
| 567 | 567 |
| 568 RawCode* GetPatchedStubAddress(uword breakpoint_address); | 568 RawCode* GetPatchedStubAddress(uword breakpoint_address); |
| 569 | 569 |
| 570 void PrintBreakpointsToJSONArray(JSONArray* jsarr) const; | 570 void PrintBreakpointsToJSONArray(JSONArray* jsarr) const; |
| 571 void PrintSettingsToJSONObject(JSONObject* jsobj) const; | 571 void PrintSettingsToJSONObject(JSONObject* jsobj) const; |
| 572 | 572 |
| 573 static bool IsDebuggable(const Function& func); | 573 static bool IsDebuggable(const Function& func); |
| 574 | 574 |
| 575 intptr_t limitBreakpointId() { return next_id_; } | 575 intptr_t limitBreakpointId() { return next_id_; } |
| 576 | 576 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 692 | 692 |
| 693 friend class Isolate; | 693 friend class Isolate; |
| 694 friend class BreakpointLocation; | 694 friend class BreakpointLocation; |
| 695 DISALLOW_COPY_AND_ASSIGN(Debugger); | 695 DISALLOW_COPY_AND_ASSIGN(Debugger); |
| 696 }; | 696 }; |
| 697 | 697 |
| 698 | 698 |
| 699 } // namespace dart | 699 } // namespace dart |
| 700 | 700 |
| 701 #endif // VM_DEBUGGER_H_ | 701 #endif // VM_DEBUGGER_H_ |
| OLD | NEW |