interactive subprocess, and a sample to control gdb session