mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-25 23:29:55 -06:00
make it possible to change gdb stub settings without destroying/recreating a NDS
This commit is contained in:
@ -51,16 +51,17 @@ static int SocketSetBlocking(int fd, bool block)
|
||||
namespace Gdb
|
||||
{
|
||||
|
||||
GdbStub::GdbStub(StubCallbacks* cb, int port)
|
||||
: Cb(cb), Port(port)
|
||||
GdbStub::GdbStub(StubCallbacks* cb)
|
||||
: Cb(cb), Port(0)
|
||||
, SockFd(0), ConnFd(0)
|
||||
, Stat(TgtStatus::None), CurBkpt(0), CurWatchpt(0), StatFlag(false), NoAck(false)
|
||||
, ServerSA((void*)new struct sockaddr_in())
|
||||
, ClientSA((void*)new struct sockaddr_in())
|
||||
{ }
|
||||
|
||||
bool GdbStub::Init()
|
||||
bool GdbStub::Init(int port)
|
||||
{
|
||||
Port = port;
|
||||
Log(LogLevel::Info, "[GDB] initializing GDB stub for core %d on port %d\n",
|
||||
Cb->GetCPU(), Port);
|
||||
|
||||
|
@ -115,10 +115,10 @@ public:
|
||||
int kind;
|
||||
};
|
||||
|
||||
GdbStub(StubCallbacks* cb, int port);
|
||||
GdbStub(StubCallbacks* cb);
|
||||
~GdbStub();
|
||||
|
||||
bool Init();
|
||||
bool Init(int port);
|
||||
void Close();
|
||||
|
||||
StubState Poll(bool wait = false);
|
||||
|
Reference in New Issue
Block a user