mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-08 04:25:37 +00:00
GDBServer: Implement 's' command (single step)
This commit is contained in:
parent
814263b442
commit
a0c06f8d9c
@ -52,6 +52,7 @@ static bool Cmd$g(ClientSocket* client, std::string_view data);
|
|||||||
static bool Cmd$G(ClientSocket* client, std::string_view data);
|
static bool Cmd$G(ClientSocket* client, std::string_view data);
|
||||||
static bool Cmd$m(ClientSocket* client, std::string_view data);
|
static bool Cmd$m(ClientSocket* client, std::string_view data);
|
||||||
static bool Cmd$M(ClientSocket* client, std::string_view data);
|
static bool Cmd$M(ClientSocket* client, std::string_view data);
|
||||||
|
static bool Cmd$s(ClientSocket* client, std::string_view data);
|
||||||
static bool Cmd$z1(ClientSocket* client, std::string_view data);
|
static bool Cmd$z1(ClientSocket* client, std::string_view data);
|
||||||
static bool Cmd$Z1(ClientSocket* client, std::string_view data);
|
static bool Cmd$Z1(ClientSocket* client, std::string_view data);
|
||||||
static bool Cmd$vMustReplyEmpty(ClientSocket* client, std::string_view data);
|
static bool Cmd$vMustReplyEmpty(ClientSocket* client, std::string_view data);
|
||||||
@ -120,6 +121,7 @@ static constexpr std::pair<std::string_view, bool (*)(ClientSocket*, std::string
|
|||||||
{"G", Cmd$G},
|
{"G", Cmd$G},
|
||||||
{"m", Cmd$m},
|
{"m", Cmd$m},
|
||||||
{"M", Cmd$M},
|
{"M", Cmd$M},
|
||||||
|
{"s", Cmd$s},
|
||||||
{"z0,", Cmd$z1},
|
{"z0,", Cmd$z1},
|
||||||
{"Z0,", Cmd$Z1},
|
{"Z0,", Cmd$Z1},
|
||||||
{"z1,", Cmd$z1},
|
{"z1,", Cmd$z1},
|
||||||
@ -276,6 +278,14 @@ bool GDBServer::Cmd$M(ClientSocket* client, std::string_view data)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Single step.
|
||||||
|
bool GDBServer::Cmd$s(ClientSocket* client, std::string_view data)
|
||||||
|
{
|
||||||
|
System::SingleStepCPU();
|
||||||
|
client->SendReplyWithAck("OK");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/// Remove hardware breakpoint.
|
/// Remove hardware breakpoint.
|
||||||
bool GDBServer::Cmd$z1(ClientSocket* client, std::string_view data)
|
bool GDBServer::Cmd$z1(ClientSocket* client, std::string_view data)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user