Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Side by Side Diff: bin/dbg_message.cc

Issue 11052006: 1. Create a port when a debugger object is created for an isolate, use this (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « bin/dbg_message.h ('k') | include/dart_debugger_api.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « bin/dbg_message.h ('k') | include/dart_debugger_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698