diff options
Diffstat (limited to 'lldb/source/API')
-rw-r--r-- | lldb/source/API/SBDebugger.cpp | 4 | ||||
-rw-r--r-- | lldb/source/API/SBFrame.cpp | 4 | ||||
-rw-r--r-- | lldb/source/API/SBTypeCategory.cpp | 18 | ||||
-rw-r--r-- | lldb/source/API/SBTypeSummary.cpp | 4 | ||||
-rw-r--r-- | lldb/source/API/SBTypeSynthetic.cpp | 4 | ||||
-rw-r--r-- | lldb/source/API/SBValue.cpp | 6 |
6 files changed, 39 insertions, 1 deletions
diff --git a/lldb/source/API/SBDebugger.cpp b/lldb/source/API/SBDebugger.cpp index 8150cb04b93..6628c1aa1f5 100644 --- a/lldb/source/API/SBDebugger.cpp +++ b/lldb/source/API/SBDebugger.cpp @@ -1135,6 +1135,7 @@ SBDebugger::GetFormatForType (SBTypeNameSpecifier type_name) return SBTypeFormat(); } +#ifndef LLDB_DISABLE_PYTHON SBTypeSummary SBDebugger::GetSummaryForType (SBTypeNameSpecifier type_name) { @@ -1158,6 +1159,7 @@ SBDebugger::GetSummaryForType (SBTypeNameSpecifier type_name) } return summary_chosen; } +#endif // LLDB_DISABLE_PYTHON SBTypeFilter SBDebugger::GetFilterForType (SBTypeNameSpecifier type_name) @@ -1183,6 +1185,7 @@ SBDebugger::GetFilterForType (SBTypeNameSpecifier type_name) return filter_chosen; } +#ifndef LLDB_DISABLE_PYTHON SBTypeSynthetic SBDebugger::GetSyntheticForType (SBTypeNameSpecifier type_name) { @@ -1206,6 +1209,7 @@ SBDebugger::GetSyntheticForType (SBTypeNameSpecifier type_name) } return synth_chosen; } +#endif // LLDB_DISABLE_PYTHON bool SBDebugger::EnableLog (const char *channel, const char **categories) diff --git a/lldb/source/API/SBFrame.cpp b/lldb/source/API/SBFrame.cpp index eaf4f8a01ca..8931e70581c 100644 --- a/lldb/source/API/SBFrame.cpp +++ b/lldb/source/API/SBFrame.cpp @@ -979,7 +979,8 @@ SBFrame::EvaluateExpression (const char *expr, lldb::DynamicValueType fetch_dyna expr_result.SetSP(expr_value_sp); Host::SetCrashDescription (NULL); } - + +#ifndef LLDB_DISABLE_PYTHON if (expr_log) expr_log->Printf("** [SBFrame::EvaluateExpression] Expression result is %s, summary %s **", expr_result.GetValue(), @@ -991,6 +992,7 @@ SBFrame::EvaluateExpression (const char *expr, lldb::DynamicValueType fetch_dyna expr, expr_value_sp.get(), exe_results); +#endif return expr_result; } diff --git a/lldb/source/API/SBTypeCategory.cpp b/lldb/source/API/SBTypeCategory.cpp index b76f8444587..1543b5efe81 100644 --- a/lldb/source/API/SBTypeCategory.cpp +++ b/lldb/source/API/SBTypeCategory.cpp @@ -104,6 +104,7 @@ SBTypeCategory::GetNumFilters () return m_opaque_sp->GetFilterNavigator()->GetCount() + m_opaque_sp->GetRegexFilterNavigator()->GetCount(); } +#ifndef LLDB_DISABLE_PYTHON uint32_t SBTypeCategory::GetNumSynthetics () { @@ -111,6 +112,7 @@ SBTypeCategory::GetNumSynthetics () return 0; return m_opaque_sp->GetSyntheticNavigator()->GetCount() + m_opaque_sp->GetRegexSyntheticNavigator()->GetCount(); } +#endif lldb::SBTypeNameSpecifier SBTypeCategory::GetTypeNameSpecifierForFilterAtIndex (uint32_t index) @@ -136,6 +138,7 @@ SBTypeCategory::GetTypeNameSpecifierForSummaryAtIndex (uint32_t index) return SBTypeNameSpecifier(m_opaque_sp->GetTypeNameSpecifierForSummaryAtIndex(index)); } +#ifndef LLDB_DISABLE_PYTHON lldb::SBTypeNameSpecifier SBTypeCategory::GetTypeNameSpecifierForSyntheticAtIndex (uint32_t index) { @@ -143,6 +146,7 @@ SBTypeCategory::GetTypeNameSpecifierForSyntheticAtIndex (uint32_t index) return SBTypeNameSpecifier(); return SBTypeNameSpecifier(m_opaque_sp->GetTypeNameSpecifierForSyntheticAtIndex(index)); } +#endif SBTypeFilter SBTypeCategory::GetFilterForType (SBTypeNameSpecifier spec) @@ -183,6 +187,7 @@ SBTypeCategory::GetFormatForType (SBTypeNameSpecifier spec) return SBTypeFormat(DataVisualization::ValueFormats::GetFormat(ConstString(spec.GetName()))); } +#ifndef LLDB_DISABLE_PYTHON SBTypeSummary SBTypeCategory::GetSummaryForType (SBTypeNameSpecifier spec) { @@ -204,7 +209,9 @@ SBTypeCategory::GetSummaryForType (SBTypeNameSpecifier spec) return lldb::SBTypeSummary(summary_sp); } +#endif // LLDB_DISABLE_PYTHON +#ifndef LLDB_DISABLE_PYTHON SBTypeSynthetic SBTypeCategory::GetSyntheticForType (SBTypeNameSpecifier spec) { @@ -228,7 +235,9 @@ SBTypeCategory::GetSyntheticForType (SBTypeNameSpecifier spec) return lldb::SBTypeSynthetic(synth_sp); } +#endif +#ifndef LLDB_DISABLE_PYTHON SBTypeFilter SBTypeCategory::GetFilterAtIndex (uint32_t index) { @@ -243,6 +252,7 @@ SBTypeCategory::GetFilterAtIndex (uint32_t index) return lldb::SBTypeFilter(filter_sp); } +#endif SBTypeFormat SBTypeCategory::GetFormatAtIndex (uint32_t index) @@ -252,6 +262,7 @@ SBTypeCategory::GetFormatAtIndex (uint32_t index) return SBTypeFormat(DataVisualization::ValueFormats::GetFormatAtIndex((index))); } +#ifndef LLDB_DISABLE_PYTHON SBTypeSummary SBTypeCategory::GetSummaryAtIndex (uint32_t index) { @@ -259,7 +270,9 @@ SBTypeCategory::GetSummaryAtIndex (uint32_t index) return SBTypeSummary(); return SBTypeSummary(m_opaque_sp->GetSummaryAtIndex((index))); } +#endif +#ifndef LLDB_DISABLE_PYTHON SBTypeSynthetic SBTypeCategory::GetSyntheticAtIndex (uint32_t index) { @@ -274,6 +287,7 @@ SBTypeCategory::GetSyntheticAtIndex (uint32_t index) return lldb::SBTypeSynthetic(synth_sp); } +#endif bool SBTypeCategory::AddTypeFormat (SBTypeNameSpecifier type_name, @@ -311,6 +325,7 @@ SBTypeCategory::DeleteTypeFormat (SBTypeNameSpecifier type_name) return DataVisualization::ValueFormats::Delete(ConstString(type_name.GetName())); } +#ifndef LLDB_DISABLE_PYTHON bool SBTypeCategory::AddTypeSummary (SBTypeNameSpecifier type_name, SBTypeSummary summary) @@ -365,6 +380,7 @@ SBTypeCategory::AddTypeSummary (SBTypeNameSpecifier type_name, return true; } +#endif bool SBTypeCategory::DeleteTypeSummary (SBTypeNameSpecifier type_name) @@ -417,6 +433,7 @@ SBTypeCategory::DeleteTypeFilter (SBTypeNameSpecifier type_name) return m_opaque_sp->GetFilterNavigator()->Delete(ConstString(type_name.GetName())); } +#ifndef LLDB_DISABLE_PYTHON bool SBTypeCategory::AddTypeSynthetic (SBTypeNameSpecifier type_name, SBTypeSynthetic synth) @@ -486,6 +503,7 @@ SBTypeCategory::DeleteTypeSynthetic (SBTypeNameSpecifier type_name) else return m_opaque_sp->GetSyntheticNavigator()->Delete(ConstString(type_name.GetName())); } +#endif // LLDB_DISABLE_PYTHON bool SBTypeCategory::GetDescription (lldb::SBStream &description, diff --git a/lldb/source/API/SBTypeSummary.cpp b/lldb/source/API/SBTypeSummary.cpp index 5edff66e660..86cb89b40b3 100644 --- a/lldb/source/API/SBTypeSummary.cpp +++ b/lldb/source/API/SBTypeSummary.cpp @@ -16,6 +16,8 @@ using namespace lldb; using namespace lldb_private; +#ifndef LLDB_DISABLE_PYTHON + SBTypeSummary::SBTypeSummary() : m_opaque_sp() { @@ -296,3 +298,5 @@ SBTypeSummary::ChangeSummaryType (bool want_script) return true; } + +#endif // LLDB_DISABLE_PYTHON diff --git a/lldb/source/API/SBTypeSynthetic.cpp b/lldb/source/API/SBTypeSynthetic.cpp index 66e2d8b68b3..647f2d89bd9 100644 --- a/lldb/source/API/SBTypeSynthetic.cpp +++ b/lldb/source/API/SBTypeSynthetic.cpp @@ -16,6 +16,8 @@ using namespace lldb; using namespace lldb_private; +#ifndef LLDB_DISABLE_PYTHON + SBTypeSynthetic::SBTypeSynthetic() : m_opaque_sp() { @@ -201,3 +203,5 @@ SBTypeSynthetic::CopyOnWrite_Impl() return true; } + +#endif // LLDB_DISABLE_PYTHON diff --git a/lldb/source/API/SBValue.cpp b/lldb/source/API/SBValue.cpp index d4d2c06a448..9818eb35e8b 100644 --- a/lldb/source/API/SBValue.cpp +++ b/lldb/source/API/SBValue.cpp @@ -310,6 +310,7 @@ SBValue::GetValueDidChange () return result; } +#ifndef LLDB_DISABLE_PYTHON const char * SBValue::GetSummary () { @@ -334,6 +335,7 @@ SBValue::GetSummary () } return cstr; } +#endif // LLDB_DISABLE_PYTHON const char * SBValue::GetLocation () @@ -399,6 +401,7 @@ SBValue::GetTypeFormat () return format; } +#ifndef LLDB_DISABLE_PYTHON lldb::SBTypeSummary SBValue::GetTypeSummary () { @@ -420,6 +423,7 @@ SBValue::GetTypeSummary () } return summary; } +#endif // LLDB_DISABLE_PYTHON lldb::SBTypeFilter SBValue::GetTypeFilter () @@ -447,6 +451,7 @@ SBValue::GetTypeFilter () return filter; } +#ifndef LLDB_DISABLE_PYTHON lldb::SBTypeSynthetic SBValue::GetTypeSynthetic () { @@ -472,6 +477,7 @@ SBValue::GetTypeSynthetic () } return synthetic; } +#endif lldb::SBValue SBValue::CreateChildAtOffset (const char *name, uint32_t offset, SBType type) |