diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2023-12-18 20:30:12 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2024-04-19 21:23:40 +0000 | 
| commit | bdbe302c3396ceb4dd89d1214485439598f05368 (patch) | |
| tree | ccf66c6349b23061ed5e9645c21f15fbe718da8b /contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/None/ScriptInterpreterNone.cpp | |
| parent | e7a1904fe1ced461b2a31f03b6592ae6564a243a (diff) | |
Diffstat (limited to 'contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/None/ScriptInterpreterNone.cpp')
| -rw-r--r-- | contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/None/ScriptInterpreterNone.cpp | 11 | 
1 files changed, 6 insertions, 5 deletions
| diff --git a/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/None/ScriptInterpreterNone.cpp b/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/None/ScriptInterpreterNone.cpp index bec90b2038e1..7aeee6e40395 100644 --- a/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/None/ScriptInterpreterNone.cpp +++ b/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/None/ScriptInterpreterNone.cpp @@ -9,7 +9,6 @@  #include "ScriptInterpreterNone.h"  #include "lldb/Core/Debugger.h"  #include "lldb/Core/PluginManager.h" -#include "lldb/Core/StreamFile.h"  #include "lldb/Utility/Stream.h"  #include "lldb/Utility/StringList.h" @@ -27,17 +26,19 @@ ScriptInterpreterNone::ScriptInterpreterNone(Debugger &debugger)  ScriptInterpreterNone::~ScriptInterpreterNone() = default; +static const char *no_interpreter_err_msg = +    "error: Embedded script interpreter unavailable. LLDB was built without " +    "scripting language support.\n"; +  bool ScriptInterpreterNone::ExecuteOneLine(llvm::StringRef command,                                             CommandReturnObject *,                                             const ExecuteScriptOptions &) { -  m_debugger.GetErrorStream().PutCString( -      "error: there is no embedded script interpreter in this mode.\n"); +  m_debugger.GetErrorStream().PutCString(no_interpreter_err_msg);    return false;  }  void ScriptInterpreterNone::ExecuteInterpreterLoop() { -  m_debugger.GetErrorStream().PutCString( -      "error: there is no embedded script interpreter in this mode.\n"); +  m_debugger.GetErrorStream().PutCString(no_interpreter_err_msg);  }  void ScriptInterpreterNone::Initialize() { | 
