Make it possible for lldb to launch a remote binary with no local file.
authorJim Ingham <jingham@apple.com>
Tue, 9 Nov 2021 22:25:03 +0000 (14:25 -0800)
committerJim Ingham <jingham@apple.com>
Wed, 17 Nov 2021 00:06:07 +0000 (16:06 -0800)
commitb715b79d54d5ca2d4e8c91089b8f6a9389d9dc48
treea2e72ee995ee3cf07d9c872c127b501038a19071
parenta0dc6001df20fcd92e8eb9e196d403859f1b5192
Make it possible for lldb to launch a remote binary with no local file.

We don't actually need a local copy of the main executable to debug
a remote process.  So instead of treating "no local module" as an error,
see if the LaunchInfo has an executable it wants lldb to use, and if so
use it.  Then report whatever error the remote server returns.

Differential Revision: https://reviews.llvm.org/D113521
lldb/source/Commands/CommandObjectProcess.cpp
lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
lldb/source/Target/Process.cpp
lldb/test/API/functionalities/gdb_remote_client/TestNoLocalFile.py [new file with mode: 0644]