Make debug logging thread-safe. Add appendBytes:length:excludingCharacter: to NSMutableData. Do low-level tmux parsing in new VT100TmuxParser class to simplify PTYSession’s threadedReadTask: method. Fix race condition where threadedReadTask: could run after dealloc was begun. Remove the not-so-useful kTmuxGatewayCommandHasEndGuardBug flag. Fix analyzer issues and some leaks.