gdb: refactor port/ctx alloc
This commit is contained in:
@@ -85,6 +85,8 @@ typedef struct GDBContext
|
||||
sock_ctx super;
|
||||
|
||||
RecursiveLock lock;
|
||||
u16 localPort;
|
||||
|
||||
GDBFlags flags;
|
||||
GDBState state;
|
||||
|
||||
|
||||
@@ -47,6 +47,7 @@ void GDB_IncrementServerReferenceCount(GDBServer *server);
|
||||
void GDB_DecrementServerReferenceCount(GDBServer *server);
|
||||
|
||||
void GDB_RunServer(GDBServer *server);
|
||||
GDBContext *GDB_SelectAvailableContext(GDBServer *server, u16 minPort, u16 maxPort);
|
||||
|
||||
int GDB_AcceptClient(GDBContext *ctx);
|
||||
int GDB_CloseClient(GDBContext *ctx);
|
||||
|
||||
Reference in New Issue
Block a user