thermospshere: c++ify xfer, query, etc. More string parsing utilities

This commit is contained in:
TuxSH
2020-02-07 18:28:34 +00:00
parent ff2c835b0a
commit 192d2db4a9
11 changed files with 287 additions and 297 deletions

View File

@@ -96,13 +96,13 @@ namespace ams::hvisor::gdb {
GDB_DEFINE_QUERY_HANDLER(CurrentThreadId)
{
GDB_TEST_NO_CMD_DATA();
GDB_CHECK_NO_CMD_DATA();
return SendFormattedPacket("QC%x", 1 + currentCoreCtx->coreId);
}
GDB_DEFINE_QUERY_HANDLER(fThreadInfo)
{
GDB_TEST_NO_CMD_DATA();
GDB_CHECK_NO_CMD_DATA();
// We have made our GDB packet big enough to list all the thread ids (coreIds + 1 for each coreId)
char *buf = GetInPlaceOutputBuffer();
@@ -120,7 +120,7 @@ namespace ams::hvisor::gdb {
GDB_DEFINE_QUERY_HANDLER(sThreadInfo)
{
GDB_TEST_NO_CMD_DATA();
GDB_CHECK_NO_CMD_DATA();
// We have made our GDB packet big enough to list all the thread ids (coreIds + 1 for each coreId) in fThreadInfo
// Note: we assume GDB doesn't accept notifications during the sequence transfer...