GDB Stub: do not send a packet when we just connected

This commit is contained in:
aldelaro5
2022-01-02 04:35:55 -05:00
parent 85d2ea0dd2
commit 4b131bf1ce
3 changed files with 11 additions and 1 deletions

View File

@ -136,7 +136,8 @@ void Run()
state_lock.unlock();
if (GDBStub::IsActive() && GDBStub::HasControl())
{
GDBStub::SendSignal(GDBStub::Signal::Sigtrap);
if (!GDBStub::JustConnected())
GDBStub::SendSignal(GDBStub::Signal::Sigtrap);
GDBStub::ProcessCommands(true);
// If we are still going to step, emulate the fact we just sent a step command
if (GDBStub::HasControl())