auto input test_command with gdb mode