diff options
author | Hedges <hedges@resync.pl> | 2018-08-07 03:01:24 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-08-06 22:01:24 -0400 |
commit | e2b74f635410891b4ab9c202ecdd83dfe05df239 (patch) | |
tree | 90cf31b4b0f60d86709bfec1a3c021056bd0a269 /src/core/core.cpp | |
parent | e218d79cc2d60468b42a56c4d76b4339ac8efd90 (diff) |
GDBStub works with both Unicorn and Dynarmic now (#941)
* GDBStub works with both Unicorn and Dynarmic now
* Tidy up
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r-- | src/core/core.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index e01c45cddc..085ba68d0f 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -62,7 +62,6 @@ System::ResultStatus System::RunLoop(bool tight_loop) { // execute. Otherwise, get out of the loop function. if (GDBStub::GetCpuHaltFlag()) { if (GDBStub::GetCpuStepFlag()) { - GDBStub::SetCpuStepFlag(false); tight_loop = false; } else { return ResultStatus::Success; @@ -78,6 +77,10 @@ System::ResultStatus System::RunLoop(bool tight_loop) { } } + if (GDBStub::IsServerEnabled()) { + GDBStub::SetCpuStepFlag(false); + } + return status; } |