95be46105a
The debugger wire handler is implemented similarly to the io event handler. A dedicated thread monitors the debugger port for incoming connection requests. When a debugger is connected, the VM sends events messages over the wire and handles debugger requests. To start the VM with a debugger connection, use the option --debug:<portnumber>. The VM pauses at the beginning of main() and waits for a debugger to connect. Subsequent changes will implement debugger commands one by one. With this change, the VM only understands "resume" commands. Review URL: https://chromiumcodereview.appspot.com//10357003 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7330 260f80e4-7a28-3924-810f-c04153c831b5
19 lines
528 B
C++
19 lines
528 B
C++
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
#include <errno.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <unistd.h>
|
|
|
|
#include "bin/dbg_connection.h"
|
|
#include "bin/fdutils.h"
|
|
#include "bin/socket.h"
|
|
|
|
|
|
void DebuggerConnectionImpl::StartHandler(int port_number) {
|
|
FATAL("Debugger wire protocol not yet implemented on Linux\n");
|
|
}
|