fix: gracefully exit

fix stack overflow bug in State.deinit
allow for code in another thread to signal shutdown to gdbstub
This commit is contained in:
2023-02-13 19:59:45 -06:00
parent c1158b547e
commit 6d6a109a08
2 changed files with 8 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ const SwBkpt = struct {
}
pub fn deinit(self: *@This()) void {
self.deinit();
self.list.deinit();
self.* = undefined;
}