diff options
author | Kuba Mracek <mracek@apple.com> | 2018-10-31 04:43:09 +0000 |
---|---|---|
committer | Kuba Mracek <mracek@apple.com> | 2018-10-31 04:43:09 +0000 |
commit | f80d265551f2f75aae5c3fd3e1dcce28ebfa3ca3 (patch) | |
tree | 788250a836e7dec21508dd732f2439df3b8c0f4d /lldb/source/Commands/CommandObjectFrame.cpp | |
parent | 41ae8e744531410943be6e67107b2f845e595ebb (diff) | |
download | llvm-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.cpp | 2 |
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(); |