mirror of
https://github.com/Polprzewodnikowy/SummerCart64.git
synced 2024-11-25 23:24:15 +01:00
[SC64][SW] GDB socket fixes
This commit is contained in:
parent
39dccd5e00
commit
fd7f12f1a8
@ -624,16 +624,19 @@ class SC64:
|
|||||||
(self.__gdb_client, address) = gdb_socket.accept()
|
(self.__gdb_client, address) = gdb_socket.accept()
|
||||||
client_address = f'{address[0]}:{address[1]}'
|
client_address = f'{address[0]}:{address[1]}'
|
||||||
print(f'[GDB]: New connection ({client_address})')
|
print(f'[GDB]: New connection ({client_address})')
|
||||||
while (True):
|
try:
|
||||||
try:
|
connected = True
|
||||||
|
while (connected):
|
||||||
data = self.__gdb_client.recv(MAX_PACKET_SIZE)
|
data = self.__gdb_client.recv(MAX_PACKET_SIZE)
|
||||||
if (len(data) == 0):
|
if (data):
|
||||||
break
|
self.debug_send(self.__DebugDatatype.GDB, data)
|
||||||
self.debug_send(self.__DebugDatatype.GDB, data)
|
else:
|
||||||
except:
|
connected = False
|
||||||
self.__gdb_client.close()
|
except:
|
||||||
break
|
pass
|
||||||
print(f'[GDB]: Connection closed ({client_address})')
|
finally:
|
||||||
|
self.__gdb_client.close()
|
||||||
|
print(f'[GDB]: Connection closed ({client_address})')
|
||||||
|
|
||||||
def __handle_gdb_datatype(self, data: bytes) -> None:
|
def __handle_gdb_datatype(self, data: bytes) -> None:
|
||||||
if (self.__gdb_client):
|
if (self.__gdb_client):
|
||||||
|
Loading…
Reference in New Issue
Block a user