| Index: src/debug.cc
|
| ===================================================================
|
| --- src/debug.cc (revision 1399)
|
| +++ src/debug.cc (working copy)
|
| @@ -1355,6 +1355,7 @@
|
| void* Debugger::message_handler_data_ = NULL;
|
| v8::DebugHostDispatchHandler Debugger::host_dispatch_handler_ = NULL;
|
| void* Debugger::host_dispatch_handler_data_ = NULL;
|
| +DebuggerAgent* Debugger::agent_ = NULL;
|
|
|
|
|
| Handle<Object> Debugger::MakeJSObject(Vector<const char> constructor_name,
|
| @@ -1792,6 +1793,17 @@
|
| }
|
|
|
|
|
| +bool Debugger::StartAgent(int port) {
|
| + if (Socket::Setup()) {
|
| + agent_ = new DebuggerAgent(port);
|
| + agent_->Start();
|
| + return true;
|
| + }
|
| +
|
| + return false;
|
| +}
|
| +
|
| +
|
| DebugMessageThread::DebugMessageThread()
|
| : host_running_(true),
|
| command_queue_(kQueueInitialSize),
|
|
|