mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-06-28 02:26:23 +02:00
gdb: Fix crash when gdb client disconnected in some cases
This commit is contained in:
parent
a2b35ecce3
commit
eb8b35b170
1 changed files with 33 additions and 23 deletions
|
@ -208,6 +208,7 @@ namespace Ryujinx.HLE.Debugger
|
||||||
while (!_shuttingDown)
|
while (!_shuttingDown)
|
||||||
{
|
{
|
||||||
IMessage msg = Messages.Take();
|
IMessage msg = Messages.Take();
|
||||||
|
try {
|
||||||
switch (msg)
|
switch (msg)
|
||||||
{
|
{
|
||||||
case BreakInMessage:
|
case BreakInMessage:
|
||||||
|
@ -234,6 +235,15 @@ namespace Ryujinx.HLE.Debugger
|
||||||
return;
|
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)
|
private void ProcessCommand(string cmd)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue