mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-25 23:29:51 -06:00
gdb: Fix crash when gdb client disconnected in some cases
This commit is contained in:
@ -208,6 +208,7 @@ namespace Ryujinx.HLE.Debugger
|
||||
while (!_shuttingDown)
|
||||
{
|
||||
IMessage msg = Messages.Take();
|
||||
try {
|
||||
switch (msg)
|
||||
{
|
||||
case BreakInMessage:
|
||||
@ -234,6 +235,15 @@ namespace Ryujinx.HLE.Debugger
|
||||
return;
|
||||
}
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
Logger.Error?.Print(LogClass.GdbStub, "Error while processing GDB messages", e);
|
||||
}
|
||||
catch (NullReferenceException e)
|
||||
{
|
||||
Logger.Error?.Print(LogClass.GdbStub, "Error while processing GDB messages", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void ProcessCommand(string cmd)
|
||||
|
Reference in New Issue
Block a user