From e77b0424fdc42ccaa627f30d97b2307292ab036e Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Sun, 20 Oct 2013 17:36:05 +0000 Subject: [PATCH] Fix python-free build. llvm-svn: 193053 --- lldb/source/DataFormatters/FormatManager.cpp | 2 ++ .../Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp | 2 ++ lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/lldb/source/DataFormatters/FormatManager.cpp b/lldb/source/DataFormatters/FormatManager.cpp index 1fa287281f33..615f07b761e3 100644 --- a/lldb/source/DataFormatters/FormatManager.cpp +++ b/lldb/source/DataFormatters/FormatManager.cpp @@ -840,7 +840,9 @@ FormatManager::LoadSystemFormatters() sys_category_sp->GetSummaryNavigator()->Add(ConstString("unsigned char *"), string_format); sys_category_sp->GetRegexSummaryNavigator()->Add(any_size_char_arr, string_array_format); +#ifndef LLDB_DISABLE_PYTHON AddCXXSynthetic(sys_category_sp, FooStructSynth, "Foo synth", ConstString("Foo"), ScriptedSyntheticChildren::Flags(), false); +#endif lldb::TypeSummaryImplSP ostype_summary(new StringSummaryFormat(TypeSummaryImpl::Flags().SetCascades(false) .SetSkipPointers(true) diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp index 61c6a13d2d4d..c4e468f89f35 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp @@ -17,7 +17,9 @@ #include "lldb/Core/RegisterValue.h" #include "lldb/Core/Scalar.h" #include "lldb/Core/StreamString.h" +#ifndef LLDB_DISABLE_PYTHON #include "lldb/Interpreter/PythonDataObjects.h" +#endif #include "lldb/Target/ExecutionContext.h" #include "lldb/Utility/Utils.h" // Project includes diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp index d611aede9842..f551babc0513 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp @@ -49,7 +49,9 @@ #include "lldb/Interpreter/CommandObject.h" #include "lldb/Interpreter/CommandObjectMultiword.h" #include "lldb/Interpreter/CommandReturnObject.h" +#ifndef LLDB_DISABLE_PYTHON #include "lldb/Interpreter/PythonDataObjects.h" +#endif #include "lldb/Symbol/ObjectFile.h" #include "lldb/Target/DynamicLoader.h" #include "lldb/Target/Target.h" @@ -320,6 +322,7 @@ ProcessGDBRemote::GetPluginVersion() bool ProcessGDBRemote::ParsePythonTargetDefinition(const FileSpec &target_definition_fspec) { +#ifndef LLDB_DISABLE_PYTHON ScriptInterpreter *interpreter = GetTarget().GetDebugger().GetCommandInterpreter().GetScriptInterpreter(); Error error; lldb::ScriptInterpreterObjectSP module_object_sp (interpreter->LoadPluginModule(target_definition_fspec, error)); @@ -353,6 +356,7 @@ ProcessGDBRemote::ParsePythonTargetDefinition(const FileSpec &target_definition_ } } } +#endif return false; }