diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2023-05-01 14:08:43 -0700 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2023-05-01 14:11:11 -0700 |
commit | b12b35ad4bec98c028a1926e4891e746b1f55d2f (patch) | |
tree | 1811a007aec03b44722ed93b95912ffcc86c9203 /lldb/source/Interpreter/CommandInterpreter.cpp | |
parent | b2fdb1417bf9dd915a99c075bcdeeb6ca6b8e2d1 (diff) | |
download | llvm-b12b35ad4bec98c028a1926e4891e746b1f55d2f.zip llvm-b12b35ad4bec98c028a1926e4891e746b1f55d2f.tar.gz llvm-b12b35ad4bec98c028a1926e4891e746b1f55d2f.tar.bz2 |
[lldb] Add debugger.external-editor setting
Add a new setting (debugger.external-editor) to specify an external
editor. The setting takes precedence over the existing
LLDB_EXTERNAL_EDITOR environment variable.
Differential revision: https://reviews.llvm.org/D149565
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
-rw-r--r-- | lldb/source/Interpreter/CommandInterpreter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp index f89cff4..ba61884 100644 --- a/lldb/source/Interpreter/CommandInterpreter.cpp +++ b/lldb/source/Interpreter/CommandInterpreter.cpp @@ -3272,7 +3272,8 @@ bool CommandInterpreter::SaveTranscript( const FileSpec file_spec; error = file->GetFileSpec(const_cast<FileSpec &>(file_spec)); if (error.Success()) { - if (llvm::Error e = Host::OpenFileInExternalEditor(file_spec, 1)) + if (llvm::Error e = Host::OpenFileInExternalEditor( + m_debugger.GetExternalEditor(), file_spec, 1)) result.AppendError(llvm::toString(std::move(e))); } } |