From 38036eb1c8633d151c721992e085e1aca5658f9d Mon Sep 17 00:00:00 2001 From: "Gauvain \"GovanifY\" Roussel-Tarbouriech" Date: Sun, 23 Feb 2020 21:33:49 +0100 Subject: gdbstub: Ensure gdbstub doesn't drop packets crucial to initialization --- src/core/gdbstub/gdbstub.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/core/gdbstub/gdbstub.h') 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(); -- cgit v1.2.3