mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-05-04 04:15:46 +00:00
gdb: Code cleanup pass #2
Moved the reply functionality into the command processor, move the main debugger thread into a dedicated class part, and more
This commit is contained in:
@@ -25,9 +25,9 @@ namespace Ryujinx.HLE.Debugger
|
||||
private readonly Debugger _debugger;
|
||||
private readonly ConcurrentDictionary<ulong, Breakpoint> _breakpoints = new();
|
||||
|
||||
private static readonly byte[] _aarch64BreakInstruction = { 0x00, 0x00, 0x20, 0xD4 }; // BRK #0
|
||||
private static readonly byte[] _aarch32BreakInstruction = { 0xFE, 0xDE, 0xFF, 0xE7 }; // TRAP
|
||||
private static readonly byte[] _aarch32ThumbBreakInstruction = { 0x80, 0xB6 };
|
||||
private static readonly byte[] _aarch64BreakInstruction = [0x00, 0x00, 0x20, 0xD4]; // BRK #0
|
||||
private static readonly byte[] _aarch32BreakInstruction = [0xFE, 0xDE, 0xFF, 0xE7]; // TRAP
|
||||
private static readonly byte[] _aarch32ThumbBreakInstruction = [0x80, 0xB6];
|
||||
|
||||
public BreakpointManager(Debugger debugger)
|
||||
{
|
||||
@@ -123,7 +123,7 @@ namespace Ryujinx.HLE.Debugger
|
||||
|
||||
private byte[] GetBreakInstruction(ulong length)
|
||||
{
|
||||
if (_debugger.IsProcessAarch32)
|
||||
if (_debugger.IsProcess32Bit)
|
||||
{
|
||||
if (length == 2)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user