Here's another round of TUI refactorings. This series is a bit shorter than the others because I'm trying to send refactorings separately from behavior-changing patches, and the next patch after these does change the TUI in a user-visible way. Each patch was built and tested using the gdb.tui tests. Tom