From f80d265551f2f75aae5c3fd3e1dcce28ebfa3ca3 Mon Sep 17 00:00:00 2001 From: Kuba Mracek Date: Wed, 31 Oct 2018 04:43:09 +0000 Subject: Fixup the Python-less build of ScriptedRecognizedStackFrame llvm-svn: 345694 --- lldb/source/Commands/CommandObjectFrame.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lldb/source/Commands/CommandObjectFrame.cpp') diff --git a/lldb/source/Commands/CommandObjectFrame.cpp b/lldb/source/Commands/CommandObjectFrame.cpp index 0dface687140..74fcf3f2b156 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(); -- cgit v1.2.3