mirror of
https://git.ryujinx.app/kenji-nx/ryujinx.git
synced 2025-12-12 01:37:02 +00:00
gdb: Abort if unable to start GDB server
When users enable GDB stub, we assume they intend to use it (it slows down the game a lot). If the server cannot start, we abort to save users' time troubleshooting why their GDB client can not connect.
This commit is contained in:
parent
b8aaadac5f
commit
5d68312b54
1 changed files with 6 additions and 3 deletions
|
|
@ -21,8 +21,9 @@ namespace Ryujinx.HLE.Debugger
|
||||||
}
|
}
|
||||||
catch (SocketException se)
|
catch (SocketException se)
|
||||||
{
|
{
|
||||||
Logger.Notice.Print(LogClass.GdbStub, $"Failed to create TCP client for GDB client: {Enum.GetName(se.SocketErrorCode)}");
|
Logger.Error?.Print(LogClass.GdbStub,
|
||||||
return;
|
$"Failed to create TCP server on {endpoint} for GDB client: {Enum.GetName(se.SocketErrorCode)}");
|
||||||
|
throw;
|
||||||
}
|
}
|
||||||
|
|
||||||
Logger.Notice.Print(LogClass.GdbStub, $"Currently waiting on {endpoint} for GDB client");
|
Logger.Notice.Print(LogClass.GdbStub, $"Currently waiting on {endpoint} for GDB client");
|
||||||
|
|
@ -33,8 +34,10 @@ namespace Ryujinx.HLE.Debugger
|
||||||
{
|
{
|
||||||
_clientSocket = _listenerSocket.AcceptSocket();
|
_clientSocket = _listenerSocket.AcceptSocket();
|
||||||
}
|
}
|
||||||
catch (SocketException)
|
catch (SocketException se)
|
||||||
{
|
{
|
||||||
|
Logger.Error?.Print(LogClass.GdbStub,
|
||||||
|
$"Failed to accept incoming GDB client connection: {Enum.GetName(se.SocketErrorCode)}");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue