mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-09 03:58:06 +03:00
GDB Stub: fix thread report requests
We are always reporting thread 1 existing and also fix an issue with a wrong memcmp size
This commit is contained in:
parent
85d2ea0dd2
commit
051197b83c
1 changed files with 4 additions and 4 deletions
|
@ -327,16 +327,16 @@ static void HandleQuery()
|
||||||
|
|
||||||
static void HandleSetThread()
|
static void HandleSetThread()
|
||||||
{
|
{
|
||||||
if (memcmp(s_cmd_bfr, "Hg0", 3) == 0 || memcmp(s_cmd_bfr, "Hc-1", 4) == 0 ||
|
if (memcmp(s_cmd_bfr, "Hg-1", 4) == 0 || memcmp(s_cmd_bfr, "Hc-1", 4) == 0 ||
|
||||||
memcmp(s_cmd_bfr, "Hc0", 3) == 0 || memcmp(s_cmd_bfr, "Hc1", 3) == 0)
|
memcmp(s_cmd_bfr, "Hg0", 3) == 0 || memcmp(s_cmd_bfr, "Hc0", 3) == 0 ||
|
||||||
|
memcmp(s_cmd_bfr, "Hg1", 3) == 0 || memcmp(s_cmd_bfr, "Hc1", 3) == 0)
|
||||||
return SendReply("OK");
|
return SendReply("OK");
|
||||||
SendReply("E01");
|
SendReply("E01");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void HandleIsThreadAlive()
|
static void HandleIsThreadAlive()
|
||||||
{
|
{
|
||||||
if (memcmp(s_cmd_bfr, "T0", 2) == 0 || memcmp(s_cmd_bfr, "T1", 4) == 0 ||
|
if (memcmp(s_cmd_bfr, "T1", 2) == 0 || memcmp(s_cmd_bfr, "T-1", 3) == 0)
|
||||||
memcmp(s_cmd_bfr, "T-1", 3) == 0)
|
|
||||||
return SendReply("OK");
|
return SendReply("OK");
|
||||||
SendReply("E01");
|
SendReply("E01");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue