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 | ba20dd9b6125551ecf2016ed7dbd61dc618fc876 (patch) | |
tree | 339289e4a87660df3edf1d3263ecb0e22ca2b573 /src/core/core.cpp | |
parent | 3e4cc6b3d259a5b37d6a2237e3ea182d67fa6845 (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 |