<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I have started lldb-server on remote linux in the directory where my executable need to be debugged reside.<div class="">From my Mac I started lldb, </div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: rgba(97, 97, 97, 0.91)" class="">(lldb) </span><span style="font-variant-ligatures: no-common-ligatures" class="">platform select remote-linux</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  Platform: remote-linux</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> Connected: no</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: rgba(97, 97, 97, 0.91)" class="">(lldb) </span><span style="font-variant-ligatures: no-common-ligatures" class="">platform connect <a href="connect://pi.local:9091" class="">connect://pi.local:9091</a></span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  Platform: remote-linux</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">OS Version: 4.9.78 (4.9.78-v7+)</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">    Kernel: #1084 SMP Thu Jan 25 18:05:49 GMT 2018</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  Hostname: pi</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> Connected: yes</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">WorkingDir: /Users/necktwi/Workspace/RemoteDebugTest/build</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: rgba(97, 97, 97, 0.91)" class="">(lldb) </span><span style="font-variant-ligatures: no-common-ligatures" class="">file Test</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgba(0, 0, 0, 0.85098);" class="">Current executable set to ’Test' (arm).</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgba(97, 97, 97, 0.909804); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">(lldb) </span><span style="font-variant-ligatures: no-common-ligatures; color: #f2f2f2" class="">run</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">error: process launch failed: Lost debug server connection</span></div></div><div class=""><div class=""><br class=""><div class="">Why the process launch failing? The executable `Test` takes parameters `-s normal`. How to feed them in? Did the process failed because of not feeding its arguments?</div><div class=""><br class=""></div><div class=""><a href="https://u7535577.ct.sendgrid.net/wf/click?upn=S8VPHvg5-2FzxqlLfWXPq42joHRevhhtk-2F7AY-2BEiccsimjZUugcpCB66JpJVXGiuJP_WMme76WnOQDuJvvro7-2FTNuvmvuA2PaJWS0FeALMc2HfRwekG2ZIQ8RWNZqpS5pNm3zr3KpG64KxYaYNpxNAsXcvN18I9mAz-2FHNm4s7diR-2FuSy6IXrEgk-2BY2n97MBEYS5iwkBIuCbKexARr-2B0xFagIjBzqGTtpVhCvyjyYqWd1dIOy7kIeyDUoBgnqzW9aw6Hw5oCr97h2unnh6TX8YfTyLjS8Z7i0RQXWDc49b1pNb0-3D" class="">https://lldb.llvm.org/remote.html</a> explains how to debug a cross-built local executable on remote platform. But I am trying to debug the executable which was built on the remote.</div><div class=""><br class=""></div><div class="">Thank you.</div><div class=""><br class="webkit-block-placeholder"></div>
… neckTwi</div></div>
<img src="https://u7535577.ct.sendgrid.net/wf/open?upn=WMme76WnOQDuJvvro7-2FTNuvmvuA2PaJWS0FeALMc2HfRwekG2ZIQ8RWNZqpS5pNmtfa0kZSC4qcgKgWKXy-2FvKDinFXQ6OEGpC3-2Bqv6V0oadurZAxqKXOGMgmQ13vULkiie15pyMOcJMmzvW54ZEDgS4BAeCNZ1aqnhQBaQyumPQPrMb5RDkdL4AEEMBgJTvE8h2C0eA0KVZ7rvYgff9Koeb-2F1Rvk-2BitptzrCzAfjNd0-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;"/>
</body></html>