summaryrefslogtreecommitdiffstats
path: root/src/core/gdbstub/gdbstub.h
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2016-12-16 06:05:20 +0100
committerGitHub <noreply@github.com>2016-12-16 06:05:20 +0100
commit7524a55133dff50ea32e4f8c7862966bbfc4e1aa (patch)
treecf90e10eab0574f8fa92eb6ec1303dea93f92e5b /src/core/gdbstub/gdbstub.h
parentMerge pull request #2320 from mailwl/cecd-update (diff)
parentgdbstub: Remove global variable from public interface (diff)
downloadyuzu-7524a55133dff50ea32e4f8c7862966bbfc4e1aa.tar
yuzu-7524a55133dff50ea32e4f8c7862966bbfc4e1aa.tar.gz
yuzu-7524a55133dff50ea32e4f8c7862966bbfc4e1aa.tar.bz2
yuzu-7524a55133dff50ea32e4f8c7862966bbfc4e1aa.tar.lz
yuzu-7524a55133dff50ea32e4f8c7862966bbfc4e1aa.tar.xz
yuzu-7524a55133dff50ea32e4f8c7862966bbfc4e1aa.tar.zst
yuzu-7524a55133dff50ea32e4f8c7862966bbfc4e1aa.zip
Diffstat (limited to 'src/core/gdbstub/gdbstub.h')
-rw-r--r--src/core/gdbstub/gdbstub.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/core/gdbstub/gdbstub.h b/src/core/gdbstub/gdbstub.h
index a7483bb10..38177e32c 100644
--- a/src/core/gdbstub/gdbstub.h
+++ b/src/core/gdbstub/gdbstub.h
@@ -5,7 +5,7 @@
// Originally written by Sven Peter <sven@fail0verflow.com> for anergistic.
#pragma once
-#include <atomic>
+
#include "common/common_types.h"
namespace GDBStub {
@@ -24,10 +24,6 @@ struct BreakpointAddress {
BreakpointType type;
};
-/// If set to false, the server will never be started and no gdbstub-related functions will be
-/// executed.
-extern std::atomic<bool> g_server_enabled;
-
/**
* Set the port the gdbstub should use to listen for connections.
*
@@ -36,7 +32,7 @@ extern std::atomic<bool> g_server_enabled;
void SetServerPort(u16 port);
/**
- * Set the g_server_enabled flag and start or stop the server if possible.
+ * Starts or stops the server if possible.
*
* @param status Set the server to enabled or disabled.
*/
@@ -48,6 +44,9 @@ void Init();
/// Stop gdbstub server.
void Shutdown();
+/// Checks if the gdbstub server is enabled.
+bool IsServerEnabled();
+
/// Returns true if there is an active socket connection.
bool IsConnected();