accomplished part of gdb control