mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-09-29 09:00:05 +02:00
gdb: fix IsProcess32Bit throws exception if called too early
For some reason, LLDB will call commands that use IsProcess32Bit earlier than GDB.
This commit is contained in:
@@ -57,8 +57,8 @@ namespace Ryujinx.HLE.Debugger
|
||||
|
||||
internal KThread[] GetThreads() => DebugProcess.ThreadUids.Select(DebugProcess.GetThread).ToArray();
|
||||
|
||||
internal bool IsProcess32Bit => GThread != null && DebugProcess.GetThread(GThread.Value).Context.IsAarch32;
|
||||
|
||||
internal bool IsProcess32Bit => DebugProcess.GetThread(GThread ?? DebugProcess.ThreadUids.First()).Context.IsAarch32;
|
||||
|
||||
internal bool WriteRegister(IExecutionContext ctx, int registerId, StringStream ss) =>
|
||||
IsProcess32Bit
|
||||
? ctx.WriteRegister32(registerId, ss)
|
||||
|
||||
Reference in New Issue
Block a user