ETISS 0.11.2
ExtendableTranslatingInstructionSetSimulator(version0.11.2)
Loading...
Searching...
No Matches
UnixTCPGDBConnection.h
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-3-Clause
2//
3// This file is part of ETISS. It is licensed under the BSD 3-Clause License; you may not use this file except in
4// compliance with the License. You should have received a copy of the license along with this project. If not, see the
5// LICENSE file.
18#ifndef ETISS_INCLUDE_GDB_UNIXTCPGDBCONNECTION_H_
19#define ETISS_INCLUDE_GDB_UNIXTCPGDBCONNECTION_H_
20#include "etiss/config.h"
21
22#if ETISS_USE_POSIX_SOCKET
23
25#include "etiss/jit/types.h"
26
27namespace etiss
28{
29
30namespace plugin
31{
32
33namespace gdb
34{
35
39class UnixTCPGDBConnection : public Connection
40{
41 public:
42 UnixTCPGDBConnection(unsigned port = 2222);
43 virtual ~UnixTCPGDBConnection();
44 virtual bool available();
45 bool _available(bool block);
46 virtual std::string rcv();
47 virtual bool snd(std::string answer);
48
49 private:
50 int socket_;
51 bool valid_;
52 int active_;
53 bool active_valid_;
54 etiss::uint8 buffer_[1024];
55 unsigned buffer_pos_;
56};
57
58} // namespace gdb
59
60} // namespace plugin
61
62} // namespace etiss
63
64#endif // ETISS_USE_POSIX_SOCKET
65
66#endif
contains defines to configure ETISS.
forwards: include/jit/*
Definition Benchmark.h:17