Index: src/debug-agent.cc |
=================================================================== |
--- src/debug-agent.cc (revision 1810) |
+++ src/debug-agent.cc (working copy) |
@@ -34,9 +34,8 @@ |
// Public V8 debugger API message handler function. This function just delegates |
// to the debugger agent through it's data parameter. |
-void DebuggerAgentMessageHandler(const uint16_t* message, int length, |
- v8::Debug::ClientData* client_data) { |
- DebuggerAgent::instance_->DebuggerMessage(message, length); |
+void DebuggerAgentMessageHandler(const v8::Debug::Message& message) { |
+ DebuggerAgent::instance_->DebuggerMessage(message); |
} |
// static |
@@ -125,13 +124,14 @@ |
} |
-void DebuggerAgent::DebuggerMessage(const uint16_t* message, int length) { |
+void DebuggerAgent::DebuggerMessage(const v8::Debug::Message& message) { |
ScopedLock with(session_access_); |
// Forward the message handling to the session. |
if (session_ != NULL) { |
- session_->DebuggerMessage(Vector<uint16_t>(const_cast<uint16_t*>(message), |
- length)); |
+ v8::String::Value val(message.GetJSON()); |
+ session_->DebuggerMessage(Vector<uint16_t>(const_cast<uint16_t*>(*val), |
+ val.length())); |
} |
} |