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

Unified Diff: tools/ddbg.dart

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.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/ddbg.dart
===================================================================
--- tools/ddbg.dart (revision 21764)
+++ tools/ddbg.dart (working copy)
@@ -48,6 +48,7 @@
gs <lib_id> <script_url> Get source text of script in library
tok <lib_id> <script_url> Get line and token table of script in library
epi <none|all|unhandled> Set exception pause info
+ li List ids of all isolates in the VM
i <id> Interrupt execution of given isolate id
h Print help
""");
@@ -193,6 +194,9 @@
"params": { "isolateId" : isolate_id,
"exceptions": args[1] } };
sendCmd(cmd).then((result) => handleGenericResponse(result));
+ } else if (command == "li") {
+ var cmd = { "id": seqNum, "command": "getIsolateIds" };
+ sendCmd(cmd).then((result) => handleGetIsolatesResponse(result));
} else if (command == "i" && args.length == 2) {
var cmd = { "id": seqNum,
"command": "interrupt",
@@ -337,6 +341,12 @@
}
+handleGetIsolatesResponse(response) {
+ Map result = response["result"];
+ print("Isolates: ${result["isolateIds"]}");
+}
+
+
void handleGetLibraryResponse(response) {
Map result = response["result"];
List libs = result["libraries"];
« no previous file with comments | « runtime/bin/dbg_message.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698