aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectTarget.cpp
diff options
context:
space:
mode:
authorMichał Górny <mgorny@moritz.systems>2020-11-20 17:12:22 +0100
committerMichał Górny <mgorny@moritz.systems>2020-11-23 09:48:55 +0100
commit18e4272a4fe4667a44f4d323140645a83ddfd864 (patch)
tree24ca8ce3f6b8be27978b8ca89067194eaad9334c /lldb/source/Commands/CommandObjectTarget.cpp
parent66ace4dc0275c8d7740bc5ff57c20e85e6660371 (diff)
downloadllvm-18e4272a4fe4667a44f4d323140645a83ddfd864.zip
llvm-18e4272a4fe4667a44f4d323140645a83ddfd864.tar.gz
llvm-18e4272a4fe4667a44f4d323140645a83ddfd864.tar.bz2
[lldb] Prevent 'process connect' from using local-only plugins
Add a 'can_connect' parameter to Process plugin initialization, and use it to filter plugins to these capable of remote connections. This is used to prevent 'process connect' from picking up a plugin that can only be used locally, e.g. the legacy FreeBSD plugin. Differential Revision: https://reviews.llvm.org/D91810
Diffstat (limited to 'lldb/source/Commands/CommandObjectTarget.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectTarget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectTarget.cpp b/lldb/source/Commands/CommandObjectTarget.cpp
index 9828528..eba129c 100644
--- a/lldb/source/Commands/CommandObjectTarget.cpp
+++ b/lldb/source/Commands/CommandObjectTarget.cpp
@@ -401,7 +401,8 @@ protected:
target_sp->AppendExecutableSearchPaths(core_file_dir);
ProcessSP process_sp(target_sp->CreateProcess(
- GetDebugger().GetListener(), llvm::StringRef(), &core_file));
+ GetDebugger().GetListener(), llvm::StringRef(), &core_file,
+ false));
if (process_sp) {
// Seems weird that we Launch a core file, but that is what we