forked from OSchip/llvm-project
parent
c5e53bd14a
commit
e77b0424fd
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue