diff options
author | Gauvain "GovanifY" Roussel-Tarbouriech <gauvain@govanify.com> | 2020-02-23 21:33:49 +0100 |
---|---|---|
committer | FearlessTobi <thm.frey@gmail.com> | 2020-03-17 11:18:13 +0100 |
commit | 38036eb1c8633d151c721992e085e1aca5658f9d (patch) | |
tree | d9866995796f24394134f4568f567343c89af288 /src/core/gdbstub/gdbstub.h | |
parent | e8ded20d2402e03fca2007204e42b62f11ec92c8 (diff) |
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.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/gdbstub/gdbstub.h b/src/core/gdbstub/gdbstub.h index 5a36524b2e..8fe3c320bd 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(); |