Formatting

This commit is contained in:
svc64 2023-12-27 16:33:47 +01:00
parent 60e2a9dd00
commit f9156756c9
5 changed files with 13 additions and 17 deletions

View File

@ -160,7 +160,7 @@ namespace ARMeilleure.State
{
_stepCallback.Invoke(this);
}
public void RequestDebugStep()
{
Interlocked.Exchange(ref ShouldStep, 1);

View File

@ -107,7 +107,7 @@ namespace Ryujinx.Cpu.Jit
{
_exceptionCallbacks.StepCallback?.Invoke(this);
}
private void SupervisorCallHandler(ExecutionContext context, ulong address, int imm)
{
_exceptionCallbacks.SupervisorCallback?.Invoke(this, address, imm);

View File

@ -49,6 +49,7 @@ namespace Ryujinx.HLE.Debugger
private IDebuggableProcess DebugProcess => Device.System.DebugGetApplicationProcess();
private KThread[] GetThreads() => DebugProcess.GetThreadUids().Select(x => DebugProcess.GetThread(x)).ToArray();
private bool IsProcessAarch32 => DebugProcess.GetThread(gThread.Value).Context.IsAarch32;
private KernelContext KernelContext => Device.System.KernelContext;
const int GdbRegisterCount64 = 68;
@ -57,7 +58,7 @@ namespace Ryujinx.HLE.Debugger
All of FPCR's bits are reserved in FPCR and vice versa,
see ARM's documentation. */
private const uint FpcrMask = 0xfc1fffff;
private string GdbReadRegister64(IExecutionContext state, int gdbRegId)
{
switch (gdbRegId)
@ -328,7 +329,7 @@ namespace Ryujinx.HLE.Debugger
if (ss.ConsumeRemaining("HostInfo"))
{
if (IsProcessAarch32())
if (IsProcessAarch32)
{
Reply(
$"triple:{ToHex("arm-unknown-linux-android")};endian:little;ptrsize:4;hostname:{ToHex("Ryujinx")};");
@ -343,7 +344,7 @@ namespace Ryujinx.HLE.Debugger
if (ss.ConsumeRemaining("ProcessInfo"))
{
if (IsProcessAarch32())
if (IsProcessAarch32)
{
Reply(
$"pid:1;cputype:12;cpusubtype:0;triple:{ToHex("arm-unknown-linux-android")};ostype:unknown;vendor:none;endian:little;ptrsize:4;");
@ -402,7 +403,7 @@ namespace Ryujinx.HLE.Debugger
if (feature == "target.xml")
{
feature = IsProcessAarch32() ? "target32.xml" : "target64.xml";
feature = IsProcessAarch32 ? "target32.xml" : "target64.xml";
}
string data;
@ -492,7 +493,7 @@ namespace Ryujinx.HLE.Debugger
var ctx = DebugProcess.GetThread(gThread.Value).Context;
string registers = "";
if (IsProcessAarch32())
if (IsProcessAarch32)
{
for (int i = 0; i < GdbRegisterCount32; i++)
{
@ -519,7 +520,7 @@ namespace Ryujinx.HLE.Debugger
}
var ctx = DebugProcess.GetThread(gThread.Value).Context;
if (IsProcessAarch32())
if (IsProcessAarch32)
{
for (int i = 0; i < GdbRegisterCount32; i++)
{
@ -625,7 +626,7 @@ namespace Ryujinx.HLE.Debugger
var ctx = DebugProcess.GetThread(gThread.Value).Context;
string result;
if (IsProcessAarch32())
if (IsProcessAarch32)
{
result = GdbReadRegister32(ctx, gdbRegId);
if (result != null)
@ -660,7 +661,7 @@ namespace Ryujinx.HLE.Debugger
}
var ctx = DebugProcess.GetThread(gThread.Value).Context;
if (IsProcessAarch32())
if (IsProcessAarch32)
{
if (GdbWriteRegister32(ctx, gdbRegId, ss) && ss.IsEmpty())
{
@ -817,11 +818,6 @@ namespace Ryujinx.HLE.Debugger
}
}
private bool IsProcessAarch32()
{
return DebugProcess.GetThread(gThread.Value).Context.IsAarch32;
}
private byte CalculateChecksum(string cmd)
{
byte checksum = 0;

View File

@ -183,7 +183,7 @@ namespace Ryujinx.HLE
/// Suspend execution when starting an application
/// </summary>
public bool DebuggerSuspendOnStart { get; internal set; }
public HLEConfiguration(VirtualFileSystem virtualFileSystem,
LibHacHorizonManager libHacHorizonManager,
ContentManager contentManager,

View File

@ -1231,7 +1231,7 @@ namespace Ryujinx.HLE.HOS.Kernel.Process
}
}
_parent.debugState = (int)DebugState.Stopped;
_parent.debugState = (int)DebugState.Stopped;
_kernelContext.CriticalSection.Leave();
}