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

    <tr>
        <th>Summary</th>
        <td>
            LLDB doesn't upload executable in remote debugging
        </td>
    </tr>

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

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

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

<pre>
    I'm trying to do a workaround with `platform put-file`, but [LLDB should upload the specified target automatically](https://lldb.llvm.org/use/remote.html#install-and-run-in-the-platform-working-directory). Can anyone try to reproduce this? Running `lldb version 14.0.0`.

```
(lldb) platform select remote-linux
  Platform: remote-linux
 Connected: no
(lldb) platform connect connect://pidevel.local:15555
  Platform: remote-linux
    Triple: aarch64-unknown-linux-gnu
OS Version: 5.15.32 (5.15.32-v8+)
  Hostname: pidevel
 Connected: yes
WorkingDir: /home/tcele
    Kernel: #1538 SMP PREEMPT Thu Mar 31 19:40:39 BST 2022
(lldb) file target/aarch64-unknown-linux-gnu/debug/examples/simple
Current executable set to '/home/ivan/workspace/TCELE/pitron-core/target/aarch64-unknown-linux-gnu/debug/examples/simple' (aarch64).
(lldb) target list
Current targets:
* target #0: /home/ivan/workspace/TCELE/pitron-core/target/aarch64-unknown-linux-gnu/debug/examples/simple ( arch=aarch64-*-linux, platform=remote-linux )
(lldb) run
error: No such file or directory
```

If I upload the file (to `/home/tcele/simple`) myself, all works fine and I can debug.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy9VVtvozoQ_jXwMgIRcwsPPLRJq1Ntu1ttoz3PBpzgU2MjX9Lm3-8YSNpqu9KRVlqEjLHHc_3mc6O6U30XkHIAq09cHsAq6BRQeFH6mWrlZAcv3PYQFMkoqN0rPcDobLTnguFaQDbQOAtBfn1_v70G0ysnOnCjULQD2zMwI2v5njP8o_rALFBn1UAtb6kQpyDfBmT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