aboutsummaryrefslogtreecommitdiff
path: root/src/core/arm/skyeye_common/armstate.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2016-12-15 16:19:30 -0500
committerLioncash <mathew1800@gmail.com>2016-12-15 16:37:22 -0500
commitba20dd9b6125551ecf2016ed7dbd61dc618fc876 (patch)
tree339289e4a87660df3edf1d3263ecb0e22ca2b573 /src/core/arm/skyeye_common/armstate.cpp
parent3e4cc6b3d259a5b37d6a2237e3ea182d67fa6845 (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/arm/skyeye_common/armstate.cpp')
-rw-r--r--src/core/arm/skyeye_common/armstate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/arm/skyeye_common/armstate.cpp b/src/core/arm/skyeye_common/armstate.cpp
index 1465b074e..c36b0208f 100644
--- a/src/core/arm/skyeye_common/armstate.cpp
+++ b/src/core/arm/skyeye_common/armstate.cpp
@@ -182,7 +182,7 @@ void ARMul_State::ResetMPCoreCP15Registers() {
}
static void CheckMemoryBreakpoint(u32 address, GDBStub::BreakpointType type) {
- if (GDBStub::g_server_enabled && GDBStub::CheckBreakpoint(address, type)) {
+ if (GDBStub::IsServerEnabled() && GDBStub::CheckBreakpoint(address, type)) {
LOG_DEBUG(Debug, "Found memory breakpoint @ %08x", address);
GDBStub::Break(true);
}