thermosphere: fix thread reporting logic, etc

This commit is contained in:
TuxSH committed 2020-02-04 19:12:24 +00:00
1 parent fe3badcdf7
commit 57a4a3457e
3 files changed
+5 -3

No files matched your search

+2
View File
@@ -236,6 +236,8 @@ int GDB_ReceivePacket(GDBContext *ctx)
ctx->state = GDB_STATE_ATTACHED;
}
// Debug
ctx->buffer[checksumPos + 2] = '\0';
DEBUGRAW("->");
DEBUGRAW(ctx->buffer);
DEBUGRAW("\n");
+2 -3
View File
@@ -70,8 +70,7 @@ GDB_DECLARE_QUERY_HANDLER(fThreadInfo)
{
// We have made our GDB packet big enough to list all the thread ids (coreIds + 1 for each coreId)
char *buf = ctx->buffer + 1;
int n = 1;
buf[0] = 'm';
size_t n = 0;
u32 coreMask = ctx->attachedCoreList;
@@ -89,7 +88,7 @@ GDB_DECLARE_QUERY_HANDLER(sThreadInfo)
{
// 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...
return GDB_SendPacket(ctx, "m", 1);
return GDB_SendPacket(ctx, "l", 1);
}
GDB_DECLARE_QUERY_HANDLER(ThreadEvents)