Files
sdk/runtime/bin/dbg_connection_linux.h
T
hausner@google.com 3a7485dfa0 Implement the linux debugger wire protocol.
Platform-dependent code of the Linux version of the debugger wire
protocol.
Review URL: https://chromiumcodereview.appspot.com//10572028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8913 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-20 16:09:39 +00:00

30 lines
795 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.
#ifndef BIN_DBG_CONNECTION_LINUX_H_
#define BIN_DBG_CONNECTION_LINUX_H_
#include <arpa/inet.h>
#include <netdb.h>
#include <sys/socket.h>
class DebuggerConnectionImpl {
public:
static void StartHandler(int port_number);
private:
static void SetupPollQueue();
static void HandleEvent(struct epoll_event* event);
static void Handler(uword args);
// File descriptors for pipes used to communicate with the debugger thread.
static int wakeup_fds_[2];
// File descriptor for the polling queue.
static int epoll_fd_;
};
#endif // BIN_DBG_CONNECTION_LINUX_H_