Michael Feathers working with legacy code book has been an absolute tome for working with old code. So many good ideas on how to tame code and find bugs and slowly improve the quality of it and its testability.
It's a very good book and more people should read it. Some great insights on how to get control of an existing system.