Remove useless definitions

This commit is contained in:
svc64 2023-11-17 10:59:50 +02:00
parent 1684a9d7a2
commit 38c15faacf

View file

@ -46,9 +46,6 @@ namespace Ryujinx.HLE.Debugger
private IDebuggableProcess DebugProcess => Device.System.DebugGetApplicationProcess(); private IDebuggableProcess DebugProcess => Device.System.DebugGetApplicationProcess();
private KThread[] GetThreads() => DebugProcess.GetThreadUids().Select(x => DebugProcess.GetThread(x)).ToArray(); private KThread[] GetThreads() => DebugProcess.GetThreadUids().Select(x => DebugProcess.GetThread(x)).ToArray();
private IVirtualMemoryManager GetMemory() => DebugProcess.CpuMemory;
private void InvalidateCacheRegion(ulong address, ulong size) =>
Device.System.DebugGetApplicationProcess().InvalidateCacheRegion(address, size);
private KernelContext KernelContext => Device.System.KernelContext; private KernelContext KernelContext => Device.System.KernelContext;
const int GdbRegisterCount = 68; const int GdbRegisterCount = 68;
@ -465,7 +462,7 @@ namespace Ryujinx.HLE.Debugger
try try
{ {
var data = new byte[len]; var data = new byte[len];
GetMemory().Read(addr, data); DebugProcess.CpuMemory.Read(addr, data);
Reply(ToHex(data)); Reply(ToHex(data));
} }
catch (InvalidMemoryRegionException) catch (InvalidMemoryRegionException)
@ -484,8 +481,8 @@ namespace Ryujinx.HLE.Debugger
data[i] = (byte)ss.ReadLengthAsHex(2); data[i] = (byte)ss.ReadLengthAsHex(2);
} }
GetMemory().Write(addr, data); DebugProcess.CpuMemory.Write(addr, data);
InvalidateCacheRegion(addr, len); DebugProcess.InvalidateCacheRegion(addr, len);
ReplyOK(); ReplyOK();
} }
catch (InvalidMemoryRegionException) catch (InvalidMemoryRegionException)