summaryrefslogtreecommitdiff
path: root/src/core/gdbstub/gdbstub.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-03-24 16:50:58 -0400
committerGitHub <noreply@github.com>2020-03-24 16:50:58 -0400
commitf8382c9d9df5cbbfc37f0e4e3952b162d3cdd1ae (patch)
tree278f7cdcbd0ceca35c041e833f0dcbd5b7e3e895 /src/core/gdbstub/gdbstub.h
parent497f59352588a2926987be2131aa0ff9ce959dd7 (diff)
parenteae2ed6b07054a7cb9eca1bc930f4bb9f973a329 (diff)
Merge pull request #3524 from FearlessTobi/port-5106
Port citra-emu/citra#5106: "gdbstub: Ensure gdbstub doesn't drop packets crucial to initialization"
Diffstat (limited to 'src/core/gdbstub/gdbstub.h')
-rw-r--r--src/core/gdbstub/gdbstub.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/gdbstub/gdbstub.h b/src/core/gdbstub/gdbstub.h
index 5a36524b2..8fe3c320b 100644
--- a/src/core/gdbstub/gdbstub.h
+++ b/src/core/gdbstub/gdbstub.h
@@ -43,6 +43,13 @@ void ToggleServer(bool status);
/// Start the gdbstub server.
void Init();
+/**
+ * Defer initialization of the gdbstub to the first packet processing functions.
+ * This avoids a case where the gdbstub thread is frozen after initialization
+ * and fails to respond in time to packets.
+ */
+void DeferStart();
+
/// Stop gdbstub server.
void Shutdown();