diff options
| author | Lioncash <mathew1800@gmail.com> | 2016-12-15 16:19:30 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2016-12-15 16:37:22 -0500 |
| commit | bec7bc3ec9ebd6cb77d1800b163179ddbf922e18 (patch) | |
| tree | 339289e4a87660df3edf1d3263ecb0e22ca2b573 /src/core/core.cpp | |
| parent | 9df75ff6d6eeef00016c0ecfef0c2810a3f9b53d (diff) | |
gdbstub: Remove global variable from public interface
Currently, this is only ever queried, so adding a function to check if the
server is enabled is more sensible.
If directly modifying this externally is ever desirable, it should be done
by adding a function to the interface, rather than exposing implementation
details directly.
Diffstat (limited to 'src/core/core.cpp')
| -rw-r--r-- | src/core/core.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 49ac8be6ee..6efa181592 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -22,7 +22,7 @@ std::unique_ptr<ARM_Interface> g_sys_core; ///< ARM11 system (OS) core /// Run the core CPU loop void RunLoop(int tight_loop) { - if (GDBStub::g_server_enabled) { + if (GDBStub::IsServerEnabled()) { GDBStub::HandlePacket(); // If the loop is halted and we want to step, use a tiny (1) number of instructions to |
