summaryrefslogtreecommitdiff
path: root/src/core/gdbstub/gdbstub.h
diff options
context:
space:
mode:
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 @@
5// Originally written by Sven Peter <sven@fail0verflow.com> for anergistic. 5// Originally written by Sven Peter <sven@fail0verflow.com> for anergistic.
6 6
7#pragma once 7#pragma once
8#include <atomic> 8
9#include "common/common_types.h" 9#include "common/common_types.h"
10 10
11namespace GDBStub { 11namespace GDBStub {
@@ -24,10 +24,6 @@ struct BreakpointAddress {
24 BreakpointType type; 24 BreakpointType type;
25}; 25};
26 26
27/// If set to false, the server will never be started and no gdbstub-related functions will be
28/// executed.
29extern std::atomic<bool> g_server_enabled;
30
31/** 27/**
32 * Set the port the gdbstub should use to listen for connections. 28 * Set the port the gdbstub should use to listen for connections.
33 * 29 *
@@ -36,7 +32,7 @@ extern std::atomic<bool> g_server_enabled;
36void SetServerPort(u16 port); 32void SetServerPort(u16 port);
37 33
38/** 34/**
39 * Set the g_server_enabled flag and start or stop the server if possible. 35 * Starts or stops the server if possible.
40 * 36 *
41 * @param status Set the server to enabled or disabled. 37 * @param status Set the server to enabled or disabled.
42 */ 38 */
@@ -48,6 +44,9 @@ void Init();
48/// Stop gdbstub server. 44/// Stop gdbstub server.
49void Shutdown(); 45void Shutdown();
50 46
47/// Checks if the gdbstub server is enabled.
48bool IsServerEnabled();
49
51/// Returns true if there is an active socket connection. 50/// Returns true if there is an active socket connection.
52bool IsConnected(); 51bool IsConnected();
53 52