cleanup
This commit is contained in:
parent
3bdf9d9805
commit
a9538a54ff
1 changed files with 11 additions and 6 deletions
|
@ -131,7 +131,7 @@ namespace Ryujinx.HLE.Debugger
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CommandMessage {Command: var cmd}:
|
case CommandMessage {Command: var cmd}:
|
||||||
Logger.Notice.Print(LogClass.GdbStub, $"Received Command: {cmd}");
|
Logger.Debug?.Print(LogClass.GdbStub, $"Received Command: {cmd}");
|
||||||
WriteStream.WriteByte((byte)'+');
|
WriteStream.WriteByte((byte)'+');
|
||||||
ProcessCommand(cmd);
|
ProcessCommand(cmd);
|
||||||
break;
|
break;
|
||||||
|
@ -313,7 +313,7 @@ namespace Ryujinx.HLE.Debugger
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
unknownCommand:
|
unknownCommand:
|
||||||
// Logger.Notice.Print(LogClass.GdbStub, $"Unknown command: {cmd}");
|
Logger.Notice.Print(LogClass.GdbStub, $"Unknown command: {cmd}");
|
||||||
Reply("");
|
Reply("");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -325,7 +325,6 @@ namespace Ryujinx.HLE.Debugger
|
||||||
HaltApplication();
|
HaltApplication();
|
||||||
gThread = cThread = GetThreadIds().First();
|
gThread = cThread = GetThreadIds().First();
|
||||||
Reply($"T05thread:{cThread:x};");
|
Reply($"T05thread:{cThread:x};");
|
||||||
//Reply("S05");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CommandContinue(ulong? newPc)
|
void CommandContinue(ulong? newPc)
|
||||||
|
@ -524,7 +523,7 @@ namespace Ryujinx.HLE.Debugger
|
||||||
|
|
||||||
private void Reply(string cmd)
|
private void Reply(string cmd)
|
||||||
{
|
{
|
||||||
Logger.Notice.Print(LogClass.GdbStub, $"Reply: {cmd}");
|
Logger.Debug?.Print(LogClass.GdbStub, $"Reply: {cmd}");
|
||||||
WriteStream.Write(Encoding.ASCII.GetBytes($"${cmd}#{CalculateChecksum(cmd):x2}"));
|
WriteStream.Write(Encoding.ASCII.GetBytes($"${cmd}#{CalculateChecksum(cmd):x2}"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -581,9 +580,15 @@ namespace Ryujinx.HLE.Debugger
|
||||||
}
|
}
|
||||||
|
|
||||||
string checksum = $"{(char)ReadStream.ReadByte()}{(char)ReadStream.ReadByte()}";
|
string checksum = $"{(char)ReadStream.ReadByte()}{(char)ReadStream.ReadByte()}";
|
||||||
// Debug.Assert(checksum == $"{CalculateChecksum(cmd):x2}");
|
if (checksum == $"{CalculateChecksum(cmd):x2}")
|
||||||
|
{
|
||||||
|
Messages.Add(new CommandMessage(cmd));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Messages.Add(new SendNackMessage());
|
||||||
|
}
|
||||||
|
|
||||||
Messages.Add(new CommandMessage(cmd));
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue