mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-22 20:31:14 +00:00
thermosphere: fix thread reporting logic, etc
This commit is contained in:
parent
fe3badcdf7
commit
57a4a3457e
3 changed files with 5 additions and 3 deletions
|
@ -72,6 +72,7 @@ CFLAGS := \
|
|||
-fno-unwind-tables \
|
||||
-std=gnu11 \
|
||||
-Wall \
|
||||
-Werror \
|
||||
-Wno-main \
|
||||
$(ARCH) $(DEFINES)
|
||||
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue