modified gdbscript and test_command