modify gdbscript to run test_cmd in shell