Replace more of the legacy interface with gdb style debugging