aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectFrame.cpp
diff options
context:
space:
mode:
authorKuba Mracek <mracek@apple.com>2018-10-31 04:43:09 +0000
committerKuba Mracek <mracek@apple.com>2018-10-31 04:43:09 +0000
commitf80d265551f2f75aae5c3fd3e1dcce28ebfa3ca3 (patch)
tree788250a836e7dec21508dd732f2439df3b8c0f4d /lldb/source/Commands/CommandObjectFrame.cpp
parent41ae8e744531410943be6e67107b2f845e595ebb (diff)
downloadllvm-f80d265551f2f75aae5c3fd3e1dcce28ebfa3ca3.zip
llvm-f80d265551f2f75aae5c3fd3e1dcce28ebfa3ca3.tar.gz
llvm-f80d265551f2f75aae5c3fd3e1dcce28ebfa3ca3.tar.bz2
Fixup the Python-less build of ScriptedRecognizedStackFrame
llvm-svn: 345694
Diffstat (limited to 'lldb/source/Commands/CommandObjectFrame.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectFrame.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectFrame.cpp b/lldb/source/Commands/CommandObjectFrame.cpp
index 0dface6..74fcf3f 100644
--- a/lldb/source/Commands/CommandObjectFrame.cpp
+++ b/lldb/source/Commands/CommandObjectFrame.cpp
@@ -883,6 +883,7 @@ Process 1234 stopped
bool CommandObjectFrameRecognizerAdd::DoExecute(Args &command,
CommandReturnObject &result) {
+#ifndef LLDB_DISABLE_PYTHON
if (m_options.m_class_name.empty()) {
result.AppendErrorWithFormat(
"%s needs a Python class name (-l argument).\n", m_cmd_name.c_str());
@@ -927,6 +928,7 @@ bool CommandObjectFrameRecognizerAdd::DoExecute(Args &command,
auto func = ConstString(m_options.m_function);
StackFrameRecognizerManager::AddRecognizer(recognizer_sp, module, func);
}
+#endif
result.SetStatus(eReturnStatusSuccessFinishNoResult);
return result.Succeeded();