mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-12-15 10:36:58 +00:00
gdb: More cleanup changes
- Move the message handler into its debugger class part, - Move all message types into one file and collapse 3 of the ones with no data into a generic, stateless message with a single property being its type, - Add an Fpscr helper property on IExecutionContext along with a comment about what Fpscr is (similar to the other registers in there) - Moved the Rcmd helpers (such as GetRegisters, GetMinidump, etc) into a dedicated Debugger class part, - Fixed the double-collection (ToArray being called twice) in GetThreadUids & GetThread in KProcess
This commit is contained in:
parent
6058af5119
commit
247e2e03d6
19 changed files with 319 additions and 328 deletions
|
|
@ -53,7 +53,7 @@ namespace Ryujinx.HLE.Debugger.Gdb
|
|||
switch (ss.ReadChar())
|
||||
{
|
||||
case '!':
|
||||
if (!ss.IsEmpty())
|
||||
if (!ss.IsEmpty)
|
||||
{
|
||||
goto unknownCommand;
|
||||
}
|
||||
|
|
@ -62,7 +62,7 @@ namespace Ryujinx.HLE.Debugger.Gdb
|
|||
ReplyOK();
|
||||
break;
|
||||
case '?':
|
||||
if (!ss.IsEmpty())
|
||||
if (!ss.IsEmpty)
|
||||
{
|
||||
goto unknownCommand;
|
||||
}
|
||||
|
|
@ -70,10 +70,10 @@ namespace Ryujinx.HLE.Debugger.Gdb
|
|||
Commands.Query();
|
||||
break;
|
||||
case 'c':
|
||||
Commands.Continue(ss.IsEmpty() ? null : ss.ReadRemainingAsHex());
|
||||
Commands.Continue(ss.IsEmpty ? null : ss.ReadRemainingAsHex());
|
||||
break;
|
||||
case 'D':
|
||||
if (!ss.IsEmpty())
|
||||
if (!ss.IsEmpty)
|
||||
{
|
||||
goto unknownCommand;
|
||||
}
|
||||
|
|
@ -81,7 +81,7 @@ namespace Ryujinx.HLE.Debugger.Gdb
|
|||
Commands.Detach();
|
||||
break;
|
||||
case 'g':
|
||||
if (!ss.IsEmpty())
|
||||
if (!ss.IsEmpty)
|
||||
{
|
||||
goto unknownCommand;
|
||||
}
|
||||
|
|
@ -172,7 +172,7 @@ namespace Ryujinx.HLE.Debugger.Gdb
|
|||
if (ss.ConsumeRemaining("fThreadInfo"))
|
||||
{
|
||||
Reply(
|
||||
$"m{Debugger.DebugProcess.GetThreadUids().Select(x => $"{x:x}").JoinToString(",")}");
|
||||
$"m{Debugger.DebugProcess.ThreadUids.Select(x => $"{x:x}").JoinToString(",")}");
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
@ -225,7 +225,7 @@ namespace Ryujinx.HLE.Debugger.Gdb
|
|||
|
||||
if (len >= (ulong)data.Length - offset)
|
||||
{
|
||||
Reply("l" + Helpers.ToBinaryFormat(data.Substring((int)offset)));
|
||||
Reply("l" + Helpers.ToBinaryFormat(data[(int)offset..]));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -274,7 +274,7 @@ namespace Ryujinx.HLE.Debugger.Gdb
|
|||
case 'Q':
|
||||
goto unknownCommand;
|
||||
case 's':
|
||||
Commands.Step(ss.IsEmpty() ? null : ss.ReadRemainingAsHex());
|
||||
Commands.Step(ss.IsEmpty ? null : ss.ReadRemainingAsHex());
|
||||
break;
|
||||
case 'T':
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue