summaryrefslogtreecommitdiff
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorGravatar Hedges2018-08-07 03:01:24 +0100
committerGravatar bunnei2018-08-06 22:01:24 -0400
commite2b74f635410891b4ab9c202ecdd83dfe05df239 (patch)
tree90cf31b4b0f60d86709bfec1a3c021056bd0a269 /src/core/core.cpp
parentMerge pull request #943 from lioncash/decl (diff)
downloadyuzu-e2b74f635410891b4ab9c202ecdd83dfe05df239.tar.gz
yuzu-e2b74f635410891b4ab9c202ecdd83dfe05df239.tar.xz
yuzu-e2b74f635410891b4ab9c202ecdd83dfe05df239.zip
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.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index e01c45cdd..085ba68d0 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -62,7 +62,6 @@ System::ResultStatus System::RunLoop(bool tight_loop) {
62 // execute. Otherwise, get out of the loop function. 62 // execute. Otherwise, get out of the loop function.
63 if (GDBStub::GetCpuHaltFlag()) { 63 if (GDBStub::GetCpuHaltFlag()) {
64 if (GDBStub::GetCpuStepFlag()) { 64 if (GDBStub::GetCpuStepFlag()) {
65 GDBStub::SetCpuStepFlag(false);
66 tight_loop = false; 65 tight_loop = false;
67 } else { 66 } else {
68 return ResultStatus::Success; 67 return ResultStatus::Success;
@@ -78,6 +77,10 @@ System::ResultStatus System::RunLoop(bool tight_loop) {
78 } 77 }
79 } 78 }
80 79
80 if (GDBStub::IsServerEnabled()) {
81 GDBStub::SetCpuStepFlag(false);
82 }
83
81 return status; 84 return status;
82} 85}
83 86