ETISS 0.8.0
Extendable Translating Instruction Set Simulator (version 0.8.0)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
UnixTCPGDBConnection.h
Go to the documentation of this file.
1
56#ifndef ETISS_INCLUDE_GDB_UNIXTCPGDBCONNECTION_H_
57#define ETISS_INCLUDE_GDB_UNIXTCPGDBCONNECTION_H_
58#include "etiss/config.h"
59
60#if ETISS_USE_POSIX_SOCKET
61
63#include "etiss/jit/types.h"
64
65namespace etiss
66{
67
68namespace plugin
69{
70
71namespace gdb
72{
73
77class UnixTCPGDBConnection : public Connection
78{
79 public:
80 UnixTCPGDBConnection(unsigned port = 2222);
81 virtual ~UnixTCPGDBConnection();
82 virtual bool available();
83 bool _available(bool block);
84 virtual std::string rcv();
85 virtual bool snd(std::string answer);
86
87 private:
88 int socket_;
89 bool valid_;
90 int active_;
91 bool active_valid_;
92 etiss::uint8 buffer_[1024];
93 unsigned buffer_pos_;
94};
95
96} // namespace gdb
97
98} // namespace plugin
99
100} // namespace etiss
101
102#endif // ETISS_USE_POSIX_SOCKET
103
104#endif
contains defines to configure ETISS.
Page Table Entry (PTE) defines the composition of Page Frame Number (PFN) and relavant flags.
Definition Benchmark.h:53