mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-26 18:43:04 +00:00
Remove useless definitions
This commit is contained in:
parent
1684a9d7a2
commit
38c15faacf
1 changed files with 3 additions and 6 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue