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

Unified Diff: runtime/bin/dbg_message.cc

Issue 14381005: Implement list isolates command (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/dbg_message.h ('k') | tools/ddbg.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/dbg_message.cc
===================================================================
--- runtime/bin/dbg_message.cc (revision 21764)
+++ runtime/bin/dbg_message.cc (working copy)
@@ -1160,6 +1160,21 @@
}
+void DbgMsgQueueList::ListIsolateIds(dart::TextBuffer* msg) {
+ MutexLocker ml(&msg_queue_list_lock_);
+ if (list_ == NULL) {
+ return; // No items in the list.
+ }
+ DbgMsgQueue* queue = list_;
+ msg->Printf("%"Pd64"", queue->isolate_id());
+ queue = queue->next();
+ while (queue != NULL) {
+ msg->Printf(",%"Pd64"", queue->isolate_id());
+ queue = queue->next();
+ }
+}
+
+
void DbgMsgQueueList::BptResolvedHandler(Dart_IsolateId isolate_id,
intptr_t bp_id,
const Dart_CodeLocation& location) {
« no previous file with comments | « runtime/bin/dbg_message.h ('k') | tools/ddbg.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698