Qt: Implement GDB server
This commit is contained in:
committed by
Connor McLaughlin
parent
abd2399aaf
commit
7dcacc2cda
24
src/duckstation-qt/gdbconnection.h
Normal file
24
src/duckstation-qt/gdbconnection.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
#include <QtCore/QThread>
|
||||
#include <QtNetwork/QTcpSocket>
|
||||
|
||||
class GDBConnection : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
GDBConnection(QObject *parent, int descriptor);
|
||||
|
||||
public Q_SLOTS:
|
||||
void gotDisconnected();
|
||||
void receivedData();
|
||||
void onEmulationPaused(bool paused);
|
||||
|
||||
private:
|
||||
void writePacket(std::string_view data);
|
||||
|
||||
int m_descriptor;
|
||||
QTcpSocket m_socket;
|
||||
std::string m_readBuffer;
|
||||
bool m_seen_resume;
|
||||
};
|
||||
Reference in New Issue
Block a user