Author: kuba.brecka Date: Tue Oct 30 21:43:09 2018 New Revision: 345694 URL: http://llvm.org/viewvc/llvm-project?rev=345694&view=rev Log: Fixup the Python-less build of ScriptedRecognizedStackFrame
Modified: lldb/trunk/source/Commands/CommandObjectFrame.cpp lldb/trunk/source/Target/StackFrameRecognizer.cpp Modified: lldb/trunk/source/Commands/CommandObjectFrame.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectFrame.cpp?rev=345694&r1=345693&r2=345694&view=diff ============================================================================== --- lldb/trunk/source/Commands/CommandObjectFrame.cpp (original) +++ lldb/trunk/source/Commands/CommandObjectFrame.cpp Tue Oct 30 21:43:09 2018 @@ -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::Do auto func = ConstString(m_options.m_function); StackFrameRecognizerManager::AddRecognizer(recognizer_sp, module, func); } +#endif result.SetStatus(eReturnStatusSuccessFinishNoResult); return result.Succeeded(); Modified: lldb/trunk/source/Target/StackFrameRecognizer.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/StackFrameRecognizer.cpp?rev=345694&r1=345693&r2=345694&view=diff ============================================================================== --- lldb/trunk/source/Target/StackFrameRecognizer.cpp (original) +++ lldb/trunk/source/Target/StackFrameRecognizer.cpp Tue Oct 30 21:43:09 2018 @@ -22,6 +22,8 @@ using namespace lldb; using namespace lldb_private; +#ifndef LLDB_DISABLE_PYTHON + class ScriptedRecognizedStackFrame : public RecognizedStackFrame { public: ScriptedRecognizedStackFrame(ValueObjectListSP args) { @@ -47,6 +49,8 @@ ScriptedStackFrameRecognizer::RecognizeF return RecognizedStackFrameSP(new ScriptedRecognizedStackFrame(args)); } +#endif + class StackFrameRecognizerManagerImpl { public: void AddRecognizer(StackFrameRecognizerSP recognizer, ConstString &module, _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits