| 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 #include "bin/dbg_connection.h" | 5 #include "bin/dbg_connection.h" |
| 6 #include "bin/dbg_message.h" | 6 #include "bin/dbg_message.h" |
| 7 #include "bin/dartutils.h" | 7 #include "bin/dartutils.h" |
| 8 #include "bin/thread.h" | 8 #include "bin/thread.h" |
| 9 #include "bin/utils.h" | 9 #include "bin/utils.h" |
| 10 | 10 |
| (...skipping 947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 958 Dart_EnterScope(); | 958 Dart_EnterScope(); |
| 959 DbgMessageQueue* msg_queue = GetIsolateMessageQueue(Dart_CurrentIsolate()); | 959 DbgMessageQueue* msg_queue = GetIsolateMessageQueue(Dart_CurrentIsolate()); |
| 960 ASSERT(msg_queue != NULL); | 960 ASSERT(msg_queue != NULL); |
| 961 msg_queue->SendQueuedMsgs(); | 961 msg_queue->SendQueuedMsgs(); |
| 962 msg_queue->SendExceptionEvent(exception, stack_trace); | 962 msg_queue->SendExceptionEvent(exception, stack_trace); |
| 963 msg_queue->HandleMessages(); | 963 msg_queue->HandleMessages(); |
| 964 Dart_ExitScope(); | 964 Dart_ExitScope(); |
| 965 } | 965 } |
| 966 | 966 |
| 967 | 967 |
| 968 void DbgMessageQueue::IsolateEventHandler(Dart_Isolate isolate, | 968 void DbgMessageQueue::IsolateEventHandler(Dart_IsolateId isolate_id, |
| 969 Dart_IsolateEvent kind) { | 969 Dart_IsolateEvent kind) { |
| 970 DebuggerConnectionHandler::WaitForConnection(); | 970 DebuggerConnectionHandler::WaitForConnection(); |
| 971 #if 0 | 971 // TODO(asiva): Add code to send isolate events over to the debugger client. |
| 972 if (kind == kCreated) { | |
| 973 printf("Isolate created %p\n", isolate); | |
| 974 } else if (kind == kInterrupted) { | |
| 975 printf("Isolate interrupted %p\n", isolate); | |
| 976 } else if (kind == kShutdown) { | |
| 977 printf("Isolate shutdown %p\n", isolate); | |
| 978 } | |
| 979 #endif | |
| 980 } | 972 } |
| OLD | NEW |