Lior Halphon via llvm-dev
2017-Nov-26 16:30 UTC
[llvm-dev] Remotely launching a new process with LLDB
I'm trying to remotely launch and debug a new process with lldb without much success. Attaching to an already launched process works well by running these commands: process connect <url> process attach -P gdb-remote --pid <pid> But if I want debugserver to launch the executable by itself I'm running into troubles. Especially, I have no clue what arguments should I pass to target create. According to this page<https://lldb.llvm.org/remote.html> LLDB "will transparently take care of [..] downloading the executable in order to be able to debug", yet target create seem to always require a local file. If I specify the remote file via -r I get either unable to open target file or remote --> local transfer without local path is not implemented yet errors. If I set the target to a local file (such as a local copy of the remote's loader executable) without using -r, then attempt to run process launch -p gdb-remote -s <remote path> LLDB will attempt running the local path on the remote machine and fail. What are the correct commands I need to use in order to launch a remote process? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171126/53542d10/attachment.html>
Adrian Prantl via llvm-dev
2017-Nov-28 17:29 UTC
[llvm-dev] Remotely launching a new process with LLDB
I would recommend asking this on the lldb mailing list instead. -- adrian> On Nov 26, 2017, at 8:30 AM, Lior Halphon via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > I'm trying to remotely launch and debug a new process with lldb without much success. > > Attaching to an already launched process works well by running these commands: > > process connect <url> > process attach -P gdb-remote --pid <pid> > But if I want debugserver to launch the executable by itself I'm running into troubles. Especially, I have no clue what arguments should I pass to target > create. > > According to this page <https://lldb.llvm.org/remote.html> LLDB "will transparently take care of [..] downloading the executable in order to be able to debug", yet target > create seem to always require a local file. If I specify the remote file via -r I get either unable > to open target file or remote > --> local transfer without local path is not implemented yet errors. If I set the target to a local file (such as a local copy of the remote's loader executable) without using -r, then attempt to run process > launch -p gdb-remote -s <remote path> LLDB will attempt running the local path on the remote machine and fail. > > What are the correct commands I need to use in order to launch a remote process? > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171128/6e98a247/attachment.html>