| 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 BIN_DBG_CONNECTION_H_ | 5 #ifndef BIN_DBG_CONNECTION_H_ |
| 6 #define BIN_DBG_CONNECTION_H_ | 6 #define BIN_DBG_CONNECTION_H_ |
| 7 | 7 |
| 8 #include "bin/builtin.h" | 8 #include "bin/builtin.h" |
| 9 #include "bin/utils.h" | 9 #include "bin/utils.h" |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 private: | 41 private: |
| 42 static void SendMsg(dart::TextBuffer* msg); | 42 static void SendMsg(dart::TextBuffer* msg); |
| 43 static void QueueMsg(dart::TextBuffer* msg); | 43 static void QueueMsg(dart::TextBuffer* msg); |
| 44 static void SendQueuedMsgs(); | 44 static void SendQueuedMsgs(); |
| 45 | 45 |
| 46 static void SendBreakpointEvent(Dart_StackTrace trace); | 46 static void SendBreakpointEvent(Dart_StackTrace trace); |
| 47 static void SendExceptionEvent(Dart_Handle exception, Dart_StackTrace trace); | 47 static void SendExceptionEvent(Dart_Handle exception, Dart_StackTrace trace); |
| 48 static void BptResolvedHandler(intptr_t bp_id, | 48 static void BptResolvedHandler(intptr_t bp_id, |
| 49 Dart_Handle url, | 49 Dart_Handle url, |
| 50 intptr_t line_number); | 50 intptr_t line_number); |
| 51 static void IsolateEventHandler(Dart_Isolate isolate, Dart_IsolateEvent kind); |
| 51 static void BreakpointHandler(Dart_Breakpoint bpt, Dart_StackTrace trace); | 52 static void BreakpointHandler(Dart_Breakpoint bpt, Dart_StackTrace trace); |
| 52 static void ExceptionThrownHandler(Dart_Handle exception, | 53 static void ExceptionThrownHandler(Dart_Handle exception, |
| 53 Dart_StackTrace stack_trace); | 54 Dart_StackTrace stack_trace); |
| 54 | 55 |
| 55 static void AcceptDbgConnection(int debug_fd); | 56 static void AcceptDbgConnection(int debug_fd); |
| 56 static void WaitForConnection(); | 57 static void WaitForConnection(); |
| 57 static void CloseDbgConnection(); | 58 static void CloseDbgConnection(); |
| 58 | 59 |
| 59 static void HandleMessages(); | 60 static void HandleMessages(); |
| 60 static void HandleResumeCmd(const char* msg); | 61 static void HandleResumeCmd(const char* msg); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 | 101 |
| 101 static MessageBuffer* msgbuf_; | 102 static MessageBuffer* msgbuf_; |
| 102 | 103 |
| 103 friend class DebuggerConnectionImpl; | 104 friend class DebuggerConnectionImpl; |
| 104 | 105 |
| 105 DISALLOW_ALLOCATION(); | 106 DISALLOW_ALLOCATION(); |
| 106 DISALLOW_IMPLICIT_CONSTRUCTORS(DebuggerConnectionHandler); | 107 DISALLOW_IMPLICIT_CONSTRUCTORS(DebuggerConnectionHandler); |
| 107 }; | 108 }; |
| 108 | 109 |
| 109 #endif // BIN_DBG_CONNECTION_H_ | 110 #endif // BIN_DBG_CONNECTION_H_ |
| OLD | NEW |