2022-12-04 11:03:45 +00:00
|
|
|
// SPDX-FileCopyrightText: 2019-2022 Connor McLaughlin <stenzek@gmail.com> and contributors.
|
|
|
|
// SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0)
|
|
|
|
|
2020-12-17 17:32:29 +00:00
|
|
|
#pragma once
|
|
|
|
#include "core/types.h"
|
|
|
|
#include "gdbconnection.h"
|
|
|
|
#include <QtNetwork/QTcpServer>
|
|
|
|
|
|
|
|
class GDBServer : public QTcpServer
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2023-02-25 16:27:03 +00:00
|
|
|
GDBServer(QObject* parent = nullptr);
|
2020-12-17 17:32:29 +00:00
|
|
|
~GDBServer();
|
|
|
|
|
2023-02-25 16:27:03 +00:00
|
|
|
public Q_SLOTS:
|
|
|
|
void start(quint16 port);
|
|
|
|
void stop();
|
|
|
|
|
2020-12-17 17:32:29 +00:00
|
|
|
protected:
|
|
|
|
void incomingConnection(qintptr socketDescriptor) override;
|
|
|
|
};
|