<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/64313>64313</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Sending files from Linux lldb to Windows lldb-server doesn't work
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          yshui
      </td>
    </tr>
</table>

<pre>
    The server replies with a `F-1,16`, and `lldb` reacts with reporting "error: invalid argument".

This is because lldb-server uses `_wsopen_s` to open files on Windows. `_wsopen_s` rejects `mode` arguments that contain anything other than `_S_IREAD | _S_IWRITE`.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxkUU1vnDAQ_TXDZbTI2AssBw7bJEiRekoi5RgZGMCtsVcek-3--8pkq6rqBTQffu_Ne5rZzI6ohfIblI-Z3uLiQ3vjZTNZ78db-7YQMoVPChjoYg0xXk1cUCNUojsUIB-KCioB8gG1G1PX2rGHSmAgPcT7eqCLD9G4GUFKCsEHUGc07lNbM6IO87aSiyBlDuIRxPnr-7YYRsPY06A3JkzIh7uajYkT28eV_YXcByfK6DEVOBlLjN7hu3Gjv3L-32agH5TUQSVWP1Jq_VHBGBcdcfAuauNQu1tcknIfFwpp5na014_nl6fzI0L9gKl4f3l-e4JK5NnYqrFRjc6oLapGNEWhyjJb2omaslGV1mpQR1VP_ampxklVJ6V1c1RDZloppBInURS1KssyPw11PRFNhTj2Td03cBS0amNzaz_X3Ic5M8wbtdVRFSqzuifLe5ZSOrriPgQpU7ShTW8O_TYzHIU1HPkvSjTRUvtKbkyHfrk3Bb_id-O2X7vvydu7m__kMHpiB7KOePXhZ7YF2y4xXhjUGWQHsptNXLY-H_wKskuM99_hEnzKAGS362SQ3X7H7wAAAP__CW_WrA">