mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-04-29 01:52:56 +00:00
gdb: dynamic rcmd system & more cleanups
This commit is contained in:
@@ -4,10 +4,8 @@ using Ryujinx.HLE.HOS.Kernel.Process;
|
||||
using Ryujinx.HLE.HOS.Kernel.Threading;
|
||||
using System;
|
||||
using System.Collections.Concurrent;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net.Sockets;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using IExecutionContext = Ryujinx.Cpu.IExecutionContext;
|
||||
|
||||
@@ -20,7 +18,7 @@ namespace Ryujinx.HLE.Debugger
|
||||
|
||||
public ushort GdbStubPort { get; private set; }
|
||||
|
||||
private readonly BlockingCollection<IMessage> _messages = new(1);
|
||||
private readonly BlockingCollection<Message.IMarker> _messages = new(1);
|
||||
private readonly Thread _debuggerThread;
|
||||
private readonly Thread _messageHandlerThread;
|
||||
|
||||
@@ -89,7 +87,7 @@ namespace Ryujinx.HLE.Debugger
|
||||
_readStream?.Close();
|
||||
_writeStream?.Close();
|
||||
_debuggerThread.Join();
|
||||
_messages.Add(StatelessMessage.Kill);
|
||||
_messages.Add(Message.Kill);
|
||||
_messageHandlerThread.Join();
|
||||
_messages.Dispose();
|
||||
_breakHandlerEvent.Dispose();
|
||||
|
||||
Reference in New Issue
Block a user