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

Unified Diff: runtime/bin/dbg_connection.cc

Issue 217693002: - Make ports be less predictable. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 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 | « no previous file | runtime/bin/dbg_message.h » ('j') | runtime/vm/port.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/dbg_connection.cc
===================================================================
--- runtime/bin/dbg_connection.cc (revision 34525)
+++ runtime/bin/dbg_connection.cc (working copy)
@@ -252,8 +252,7 @@
const char* end = r.EndOfObject();
// Get debug message queue corresponding to isolate.
MessageParser msg_parser(start, (end - start));
- Dart_IsolateId isolate_id =
- static_cast<Dart_IsolateId>(msg_parser.GetIntParam("isolateId"));
+ Dart_IsolateId isolate_id = msg_parser.GetInt64Param("isolateId");
if (!DbgMsgQueueList::AddIsolateMessage(isolate_id,
cmd_idx,
msgbuf_->buf(),
@@ -430,8 +429,7 @@
void DebuggerConnectionHandler::HandleInterruptCmd(DbgMessage* in_msg) {
MessageParser msg_parser(in_msg->buffer(), in_msg->buffer_len());
int msg_id = msg_parser.MessageId();
- Dart_IsolateId isolate_id =
- static_cast<Dart_IsolateId>(msg_parser.GetIntParam("isolateId"));
+ Dart_IsolateId isolate_id = msg_parser.GetInt64Param("isolateId");
if (isolate_id == ILLEGAL_ISOLATE_ID || Dart_GetIsolate(isolate_id) == NULL) {
in_msg->SendErrorReply(msg_id, "Invalid isolate specified");
return;
« no previous file with comments | « no previous file | runtime/bin/dbg_message.h » ('j') | runtime/vm/port.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698