def _generate_run_gdbserver_binary(dest, host, gdb, gdb_listen, remote_dir,
        port):
    if remote_dir is None:
        remote_dir = "."
    remote_gdb_script_path = os.path.join(dest, "remote_gdbserver.sh")
    with open(remote_gdb_script_path, "w+") as f:
        f.write(FILE_REMOTE_GDBSERVER_SH % { 'host': host,
                                             'gdb_listen': gdb_listen,
                                             'remote_dir': remote_dir,
                                             'gdb': gdb,
                                             'port': port})
    os.chmod(remote_gdb_script_path, 0755)
    return [os.path.basename(remote_gdb_script_path)]
generate a script that run a program on the robot in gdbserver
dataset/ETHPy150Open aldebaran/qibuild/python/qibuild/deploy.py/_generate_run_gdbserver_binary