forked from OSchip/llvm-project
Patch Enrico's changes from r150558 on 2012-02-14 to build even if Python
is not available (LLDB_DISABLE_PYTHON is defined). Change build-swig-Python.sh to emit an empty LLDBPythonWrap.cpp file if this build is LLDB_DISABLE_PYTHON. Change the "Copy to Xcode.app" shell script phase in the lldb.xcodeproj to only do this copying for Mac native builds. llvm-svn: 151035
This commit is contained in:
parent
021f73684b
commit
cf7e2dc09a
|
@ -268,14 +268,18 @@ public:
|
||||||
SBTypeFormat
|
SBTypeFormat
|
||||||
GetFormatForType (SBTypeNameSpecifier);
|
GetFormatForType (SBTypeNameSpecifier);
|
||||||
|
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
SBTypeSummary
|
SBTypeSummary
|
||||||
GetSummaryForType (SBTypeNameSpecifier);
|
GetSummaryForType (SBTypeNameSpecifier);
|
||||||
|
#endif
|
||||||
|
|
||||||
SBTypeFilter
|
SBTypeFilter
|
||||||
GetFilterForType (SBTypeNameSpecifier);
|
GetFilterForType (SBTypeNameSpecifier);
|
||||||
|
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
SBTypeSynthetic
|
SBTypeSynthetic
|
||||||
GetSyntheticForType (SBTypeNameSpecifier);
|
GetSyntheticForType (SBTypeNameSpecifier);
|
||||||
|
#endif
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
|
|
@ -64,7 +64,9 @@ class SBTypeFilter;
|
||||||
class SBTypeFormat;
|
class SBTypeFormat;
|
||||||
class SBTypeNameSpecifier;
|
class SBTypeNameSpecifier;
|
||||||
class SBTypeSummary;
|
class SBTypeSummary;
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
class SBTypeSynthetic;
|
class SBTypeSynthetic;
|
||||||
|
#endif
|
||||||
class SBTypeList;
|
class SBTypeList;
|
||||||
class SBValue;
|
class SBValue;
|
||||||
class SBValueList;
|
class SBValueList;
|
||||||
|
|
|
@ -49,8 +49,10 @@ namespace lldb {
|
||||||
uint32_t
|
uint32_t
|
||||||
GetNumFilters ();
|
GetNumFilters ();
|
||||||
|
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
uint32_t
|
uint32_t
|
||||||
GetNumSynthetics ();
|
GetNumSynthetics ();
|
||||||
|
#endif
|
||||||
|
|
||||||
SBTypeNameSpecifier
|
SBTypeNameSpecifier
|
||||||
GetTypeNameSpecifierForFilterAtIndex (uint32_t);
|
GetTypeNameSpecifierForFilterAtIndex (uint32_t);
|
||||||
|
@ -61,8 +63,10 @@ namespace lldb {
|
||||||
SBTypeNameSpecifier
|
SBTypeNameSpecifier
|
||||||
GetTypeNameSpecifierForSummaryAtIndex (uint32_t);
|
GetTypeNameSpecifierForSummaryAtIndex (uint32_t);
|
||||||
|
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
SBTypeNameSpecifier
|
SBTypeNameSpecifier
|
||||||
GetTypeNameSpecifierForSyntheticAtIndex (uint32_t);
|
GetTypeNameSpecifierForSyntheticAtIndex (uint32_t);
|
||||||
|
#endif
|
||||||
|
|
||||||
SBTypeFilter
|
SBTypeFilter
|
||||||
GetFilterForType (SBTypeNameSpecifier);
|
GetFilterForType (SBTypeNameSpecifier);
|
||||||
|
@ -70,23 +74,33 @@ namespace lldb {
|
||||||
SBTypeFormat
|
SBTypeFormat
|
||||||
GetFormatForType (SBTypeNameSpecifier);
|
GetFormatForType (SBTypeNameSpecifier);
|
||||||
|
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
SBTypeSummary
|
SBTypeSummary
|
||||||
GetSummaryForType (SBTypeNameSpecifier);
|
GetSummaryForType (SBTypeNameSpecifier);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
SBTypeSynthetic
|
SBTypeSynthetic
|
||||||
GetSyntheticForType (SBTypeNameSpecifier);
|
GetSyntheticForType (SBTypeNameSpecifier);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
SBTypeFilter
|
SBTypeFilter
|
||||||
GetFilterAtIndex (uint32_t);
|
GetFilterAtIndex (uint32_t);
|
||||||
|
#endif
|
||||||
|
|
||||||
SBTypeFormat
|
SBTypeFormat
|
||||||
GetFormatAtIndex (uint32_t);
|
GetFormatAtIndex (uint32_t);
|
||||||
|
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
SBTypeSummary
|
SBTypeSummary
|
||||||
GetSummaryAtIndex (uint32_t);
|
GetSummaryAtIndex (uint32_t);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
SBTypeSynthetic
|
SBTypeSynthetic
|
||||||
GetSyntheticAtIndex (uint32_t);
|
GetSyntheticAtIndex (uint32_t);
|
||||||
|
#endif
|
||||||
|
|
||||||
bool
|
bool
|
||||||
AddTypeFormat (SBTypeNameSpecifier,
|
AddTypeFormat (SBTypeNameSpecifier,
|
||||||
|
@ -95,9 +109,11 @@ namespace lldb {
|
||||||
bool
|
bool
|
||||||
DeleteTypeFormat (SBTypeNameSpecifier);
|
DeleteTypeFormat (SBTypeNameSpecifier);
|
||||||
|
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
bool
|
bool
|
||||||
AddTypeSummary (SBTypeNameSpecifier,
|
AddTypeSummary (SBTypeNameSpecifier,
|
||||||
SBTypeSummary);
|
SBTypeSummary);
|
||||||
|
#endif
|
||||||
|
|
||||||
bool
|
bool
|
||||||
DeleteTypeSummary (SBTypeNameSpecifier);
|
DeleteTypeSummary (SBTypeNameSpecifier);
|
||||||
|
@ -109,12 +125,14 @@ namespace lldb {
|
||||||
bool
|
bool
|
||||||
DeleteTypeFilter (SBTypeNameSpecifier);
|
DeleteTypeFilter (SBTypeNameSpecifier);
|
||||||
|
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
bool
|
bool
|
||||||
AddTypeSynthetic (SBTypeNameSpecifier,
|
AddTypeSynthetic (SBTypeNameSpecifier,
|
||||||
SBTypeSynthetic);
|
SBTypeSynthetic);
|
||||||
|
|
||||||
bool
|
bool
|
||||||
DeleteTypeSynthetic (SBTypeNameSpecifier);
|
DeleteTypeSynthetic (SBTypeNameSpecifier);
|
||||||
|
#endif
|
||||||
|
|
||||||
lldb::SBTypeCategory &
|
lldb::SBTypeCategory &
|
||||||
operator = (const lldb::SBTypeCategory &rhs);
|
operator = (const lldb::SBTypeCategory &rhs);
|
||||||
|
|
|
@ -12,6 +12,8 @@
|
||||||
|
|
||||||
#include "lldb/API/SBDefines.h"
|
#include "lldb/API/SBDefines.h"
|
||||||
|
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
|
|
||||||
namespace lldb {
|
namespace lldb {
|
||||||
|
|
||||||
class SBTypeSummary
|
class SBTypeSummary
|
||||||
|
@ -108,4 +110,6 @@ namespace lldb {
|
||||||
|
|
||||||
} // namespace lldb
|
} // namespace lldb
|
||||||
|
|
||||||
|
#endif // LLDB_DISABLE_PYTHON
|
||||||
|
|
||||||
#endif // LLDB_SBTypeSummary_h_
|
#endif // LLDB_SBTypeSummary_h_
|
||||||
|
|
|
@ -12,6 +12,8 @@
|
||||||
|
|
||||||
#include "lldb/API/SBDefines.h"
|
#include "lldb/API/SBDefines.h"
|
||||||
|
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
|
|
||||||
namespace lldb {
|
namespace lldb {
|
||||||
|
|
||||||
class SBTypeSynthetic
|
class SBTypeSynthetic
|
||||||
|
@ -95,4 +97,6 @@ namespace lldb {
|
||||||
|
|
||||||
} // namespace lldb
|
} // namespace lldb
|
||||||
|
|
||||||
|
#endif // LLDB_DISABLE_PYTHON
|
||||||
|
|
||||||
#endif // LLDB_SBTypeSynthetic_h_
|
#endif // LLDB_SBTypeSynthetic_h_
|
||||||
|
|
|
@ -104,14 +104,18 @@ public:
|
||||||
lldb::SBTypeFormat
|
lldb::SBTypeFormat
|
||||||
GetTypeFormat ();
|
GetTypeFormat ();
|
||||||
|
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
lldb::SBTypeSummary
|
lldb::SBTypeSummary
|
||||||
GetTypeSummary ();
|
GetTypeSummary ();
|
||||||
|
#endif
|
||||||
|
|
||||||
lldb::SBTypeFilter
|
lldb::SBTypeFilter
|
||||||
GetTypeFilter ();
|
GetTypeFilter ();
|
||||||
|
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
lldb::SBTypeSynthetic
|
lldb::SBTypeSynthetic
|
||||||
GetTypeSynthetic ();
|
GetTypeSynthetic ();
|
||||||
|
#endif
|
||||||
|
|
||||||
lldb::SBValue
|
lldb::SBValue
|
||||||
GetChildAtIndex (uint32_t idx);
|
GetChildAtIndex (uint32_t idx);
|
||||||
|
|
|
@ -692,9 +692,10 @@ private:
|
||||||
void
|
void
|
||||||
LoadSystemFormatters();
|
LoadSystemFormatters();
|
||||||
|
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
void
|
void
|
||||||
LoadObjCFormatters();
|
LoadObjCFormatters();
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace lldb_private
|
} // namespace lldb_private
|
||||||
|
|
|
@ -291,7 +291,9 @@ namespace lldb {
|
||||||
typedef std::tr1::shared_ptr<lldb_private::SyntheticChildren> SyntheticChildrenSP;
|
typedef std::tr1::shared_ptr<lldb_private::SyntheticChildren> SyntheticChildrenSP;
|
||||||
typedef std::tr1::shared_ptr<lldb_private::SyntheticChildrenFrontEnd> SyntheticChildrenFrontEndSP;
|
typedef std::tr1::shared_ptr<lldb_private::SyntheticChildrenFrontEnd> SyntheticChildrenFrontEndSP;
|
||||||
typedef std::tr1::shared_ptr<lldb_private::TypeFilterImpl> TypeFilterImplSP;
|
typedef std::tr1::shared_ptr<lldb_private::TypeFilterImpl> TypeFilterImplSP;
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
typedef std::tr1::shared_ptr<lldb_private::TypeSyntheticImpl> TypeSyntheticImplSP;
|
typedef std::tr1::shared_ptr<lldb_private::TypeSyntheticImpl> TypeSyntheticImplSP;
|
||||||
|
#endif
|
||||||
typedef std::tr1::shared_ptr<lldb_private::Target> TargetSP;
|
typedef std::tr1::shared_ptr<lldb_private::Target> TargetSP;
|
||||||
typedef std::tr1::weak_ptr<lldb_private::Target> TargetWP;
|
typedef std::tr1::weak_ptr<lldb_private::Target> TargetWP;
|
||||||
typedef std::tr1::shared_ptr<lldb_private::Thread> ThreadSP;
|
typedef std::tr1::shared_ptr<lldb_private::Thread> ThreadSP;
|
||||||
|
|
|
@ -3133,7 +3133,7 @@
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 1;
|
runOnlyForDeploymentPostprocessing = 1;
|
||||||
shellPath = /bin/sh;
|
shellPath = /bin/sh;
|
||||||
shellScript = "xcode_dir=\"${DSTROOT}/Applications/Xcode.app/Contents/Developer/usr/bin\"\n\nif [ ! -d \"${xcode_dir}\" ]; then\n mkdir -p \"${xcode_dir}\"\nfi\n\nditto \"$TARGET_BUILD_DIR/$EXECUTABLE_PATH\" \"${xcode_dir}\"\nstrip -S \"${xcode_dir}/${EXECUTABLE_PATH}\"";
|
shellScript = "xcode_dir=\"${DSTROOT}/Applications/Xcode.app/Contents/Developer/usr/bin\"; if echo \"$SDKROOT\" | grep -vi iphoneos >/dev/null; then [ ! -d \"${xcode_dir}\" ] && mkdir -p \"${xcode_dir}\"; ditto \"$TARGET_BUILD_DIR/$EXECUTABLE_PATH\" \"${xcode_dir}\"; strip -S \"${xcode_dir}/${EXECUTABLE_PATH}\"; fi";
|
||||||
};
|
};
|
||||||
2613F2F2146880EE00BFE551 /* Copy to Xcode.app */ = {
|
2613F2F2146880EE00BFE551 /* Copy to Xcode.app */ = {
|
||||||
isa = PBXShellScriptBuildPhase;
|
isa = PBXShellScriptBuildPhase;
|
||||||
|
@ -3147,7 +3147,7 @@
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 1;
|
runOnlyForDeploymentPostprocessing = 1;
|
||||||
shellPath = "/bin/sh -x";
|
shellPath = "/bin/sh -x";
|
||||||
shellScript = "xcode_dir=\"${DSTROOT}/Applications/Xcode.app/Contents/SharedFrameworks\"\n\nif [ ! -d \"${xcode_dir}\" ]; then\n mkdir -p \"${xcode_dir}\"\nfi\n\nditto \"${TARGET_BUILD_DIR}/${WRAPPER_NAME}\" \"${xcode_dir}/${WRAPPER_NAME}\"\nstrip -S \"${xcode_dir}/${EXECUTABLE_PATH}\"";
|
shellScript = "xcode_dir=\"${DSTROOT}/Applications/Xcode.app/Contents/SharedFrameworks\"; if echo \"$SDKROOT\" | grep -vi iphoneos >/dev/null; then [ ! -d \"${xcode_dir}\" ] && mkdir -p \"${xcode_dir}\"; ditto \"${TARGET_BUILD_DIR}/${WRAPPER_NAME}\" \"${xcode_dir}/${WRAPPER_NAME}\"; strip -S \"${xcode_dir}/${EXECUTABLE_PATH}\"; fi";
|
||||||
};
|
};
|
||||||
261B5A7511C3FA6F00AABD0A /* Fixup Framework Headers */ = {
|
261B5A7511C3FA6F00AABD0A /* Fixup Framework Headers */ = {
|
||||||
isa = PBXShellScriptBuildPhase;
|
isa = PBXShellScriptBuildPhase;
|
||||||
|
|
|
@ -33,6 +33,15 @@ else
|
||||||
Debug=0
|
Debug=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# If this project is being built with LLDB_DISABLE_PYTHON defined,
|
||||||
|
# don't bother generating Python swig bindings -- we don't have
|
||||||
|
# Python available.
|
||||||
|
|
||||||
|
if echo $GCC_PREPROCESSOR_DEFINITIONS | grep LLDB_DISABLE_PYTHON
|
||||||
|
then
|
||||||
|
echo "" > "${swig_output_file}"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
HEADER_FILES="${SRC_ROOT}/include/lldb/lldb.h"\
|
HEADER_FILES="${SRC_ROOT}/include/lldb/lldb.h"\
|
||||||
" ${SRC_ROOT}/include/lldb/lldb-defines.h"\
|
" ${SRC_ROOT}/include/lldb/lldb-defines.h"\
|
||||||
|
|
|
@ -1135,6 +1135,7 @@ SBDebugger::GetFormatForType (SBTypeNameSpecifier type_name)
|
||||||
return SBTypeFormat();
|
return SBTypeFormat();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
SBTypeSummary
|
SBTypeSummary
|
||||||
SBDebugger::GetSummaryForType (SBTypeNameSpecifier type_name)
|
SBDebugger::GetSummaryForType (SBTypeNameSpecifier type_name)
|
||||||
{
|
{
|
||||||
|
@ -1158,6 +1159,7 @@ SBDebugger::GetSummaryForType (SBTypeNameSpecifier type_name)
|
||||||
}
|
}
|
||||||
return summary_chosen;
|
return summary_chosen;
|
||||||
}
|
}
|
||||||
|
#endif // LLDB_DISABLE_PYTHON
|
||||||
|
|
||||||
SBTypeFilter
|
SBTypeFilter
|
||||||
SBDebugger::GetFilterForType (SBTypeNameSpecifier type_name)
|
SBDebugger::GetFilterForType (SBTypeNameSpecifier type_name)
|
||||||
|
@ -1183,6 +1185,7 @@ SBDebugger::GetFilterForType (SBTypeNameSpecifier type_name)
|
||||||
return filter_chosen;
|
return filter_chosen;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
SBTypeSynthetic
|
SBTypeSynthetic
|
||||||
SBDebugger::GetSyntheticForType (SBTypeNameSpecifier type_name)
|
SBDebugger::GetSyntheticForType (SBTypeNameSpecifier type_name)
|
||||||
{
|
{
|
||||||
|
@ -1206,6 +1209,7 @@ SBDebugger::GetSyntheticForType (SBTypeNameSpecifier type_name)
|
||||||
}
|
}
|
||||||
return synth_chosen;
|
return synth_chosen;
|
||||||
}
|
}
|
||||||
|
#endif // LLDB_DISABLE_PYTHON
|
||||||
|
|
||||||
bool
|
bool
|
||||||
SBDebugger::EnableLog (const char *channel, const char **categories)
|
SBDebugger::EnableLog (const char *channel, const char **categories)
|
||||||
|
|
|
@ -980,6 +980,7 @@ SBFrame::EvaluateExpression (const char *expr, lldb::DynamicValueType fetch_dyna
|
||||||
Host::SetCrashDescription (NULL);
|
Host::SetCrashDescription (NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
if (expr_log)
|
if (expr_log)
|
||||||
expr_log->Printf("** [SBFrame::EvaluateExpression] Expression result is %s, summary %s **",
|
expr_log->Printf("** [SBFrame::EvaluateExpression] Expression result is %s, summary %s **",
|
||||||
expr_result.GetValue(),
|
expr_result.GetValue(),
|
||||||
|
@ -991,6 +992,7 @@ SBFrame::EvaluateExpression (const char *expr, lldb::DynamicValueType fetch_dyna
|
||||||
expr,
|
expr,
|
||||||
expr_value_sp.get(),
|
expr_value_sp.get(),
|
||||||
exe_results);
|
exe_results);
|
||||||
|
#endif
|
||||||
|
|
||||||
return expr_result;
|
return expr_result;
|
||||||
}
|
}
|
||||||
|
|
|
@ -104,6 +104,7 @@ SBTypeCategory::GetNumFilters ()
|
||||||
return m_opaque_sp->GetFilterNavigator()->GetCount() + m_opaque_sp->GetRegexFilterNavigator()->GetCount();
|
return m_opaque_sp->GetFilterNavigator()->GetCount() + m_opaque_sp->GetRegexFilterNavigator()->GetCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
uint32_t
|
uint32_t
|
||||||
SBTypeCategory::GetNumSynthetics ()
|
SBTypeCategory::GetNumSynthetics ()
|
||||||
{
|
{
|
||||||
|
@ -111,6 +112,7 @@ SBTypeCategory::GetNumSynthetics ()
|
||||||
return 0;
|
return 0;
|
||||||
return m_opaque_sp->GetSyntheticNavigator()->GetCount() + m_opaque_sp->GetRegexSyntheticNavigator()->GetCount();
|
return m_opaque_sp->GetSyntheticNavigator()->GetCount() + m_opaque_sp->GetRegexSyntheticNavigator()->GetCount();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
lldb::SBTypeNameSpecifier
|
lldb::SBTypeNameSpecifier
|
||||||
SBTypeCategory::GetTypeNameSpecifierForFilterAtIndex (uint32_t index)
|
SBTypeCategory::GetTypeNameSpecifierForFilterAtIndex (uint32_t index)
|
||||||
|
@ -136,6 +138,7 @@ SBTypeCategory::GetTypeNameSpecifierForSummaryAtIndex (uint32_t index)
|
||||||
return SBTypeNameSpecifier(m_opaque_sp->GetTypeNameSpecifierForSummaryAtIndex(index));
|
return SBTypeNameSpecifier(m_opaque_sp->GetTypeNameSpecifierForSummaryAtIndex(index));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
lldb::SBTypeNameSpecifier
|
lldb::SBTypeNameSpecifier
|
||||||
SBTypeCategory::GetTypeNameSpecifierForSyntheticAtIndex (uint32_t index)
|
SBTypeCategory::GetTypeNameSpecifierForSyntheticAtIndex (uint32_t index)
|
||||||
{
|
{
|
||||||
|
@ -143,6 +146,7 @@ SBTypeCategory::GetTypeNameSpecifierForSyntheticAtIndex (uint32_t index)
|
||||||
return SBTypeNameSpecifier();
|
return SBTypeNameSpecifier();
|
||||||
return SBTypeNameSpecifier(m_opaque_sp->GetTypeNameSpecifierForSyntheticAtIndex(index));
|
return SBTypeNameSpecifier(m_opaque_sp->GetTypeNameSpecifierForSyntheticAtIndex(index));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
SBTypeFilter
|
SBTypeFilter
|
||||||
SBTypeCategory::GetFilterForType (SBTypeNameSpecifier spec)
|
SBTypeCategory::GetFilterForType (SBTypeNameSpecifier spec)
|
||||||
|
@ -183,6 +187,7 @@ SBTypeCategory::GetFormatForType (SBTypeNameSpecifier spec)
|
||||||
return SBTypeFormat(DataVisualization::ValueFormats::GetFormat(ConstString(spec.GetName())));
|
return SBTypeFormat(DataVisualization::ValueFormats::GetFormat(ConstString(spec.GetName())));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
SBTypeSummary
|
SBTypeSummary
|
||||||
SBTypeCategory::GetSummaryForType (SBTypeNameSpecifier spec)
|
SBTypeCategory::GetSummaryForType (SBTypeNameSpecifier spec)
|
||||||
{
|
{
|
||||||
|
@ -204,7 +209,9 @@ SBTypeCategory::GetSummaryForType (SBTypeNameSpecifier spec)
|
||||||
|
|
||||||
return lldb::SBTypeSummary(summary_sp);
|
return lldb::SBTypeSummary(summary_sp);
|
||||||
}
|
}
|
||||||
|
#endif // LLDB_DISABLE_PYTHON
|
||||||
|
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
SBTypeSynthetic
|
SBTypeSynthetic
|
||||||
SBTypeCategory::GetSyntheticForType (SBTypeNameSpecifier spec)
|
SBTypeCategory::GetSyntheticForType (SBTypeNameSpecifier spec)
|
||||||
{
|
{
|
||||||
|
@ -228,7 +235,9 @@ SBTypeCategory::GetSyntheticForType (SBTypeNameSpecifier spec)
|
||||||
|
|
||||||
return lldb::SBTypeSynthetic(synth_sp);
|
return lldb::SBTypeSynthetic(synth_sp);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
SBTypeFilter
|
SBTypeFilter
|
||||||
SBTypeCategory::GetFilterAtIndex (uint32_t index)
|
SBTypeCategory::GetFilterAtIndex (uint32_t index)
|
||||||
{
|
{
|
||||||
|
@ -243,6 +252,7 @@ SBTypeCategory::GetFilterAtIndex (uint32_t index)
|
||||||
|
|
||||||
return lldb::SBTypeFilter(filter_sp);
|
return lldb::SBTypeFilter(filter_sp);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
SBTypeFormat
|
SBTypeFormat
|
||||||
SBTypeCategory::GetFormatAtIndex (uint32_t index)
|
SBTypeCategory::GetFormatAtIndex (uint32_t index)
|
||||||
|
@ -252,6 +262,7 @@ SBTypeCategory::GetFormatAtIndex (uint32_t index)
|
||||||
return SBTypeFormat(DataVisualization::ValueFormats::GetFormatAtIndex((index)));
|
return SBTypeFormat(DataVisualization::ValueFormats::GetFormatAtIndex((index)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
SBTypeSummary
|
SBTypeSummary
|
||||||
SBTypeCategory::GetSummaryAtIndex (uint32_t index)
|
SBTypeCategory::GetSummaryAtIndex (uint32_t index)
|
||||||
{
|
{
|
||||||
|
@ -259,7 +270,9 @@ SBTypeCategory::GetSummaryAtIndex (uint32_t index)
|
||||||
return SBTypeSummary();
|
return SBTypeSummary();
|
||||||
return SBTypeSummary(m_opaque_sp->GetSummaryAtIndex((index)));
|
return SBTypeSummary(m_opaque_sp->GetSummaryAtIndex((index)));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
SBTypeSynthetic
|
SBTypeSynthetic
|
||||||
SBTypeCategory::GetSyntheticAtIndex (uint32_t index)
|
SBTypeCategory::GetSyntheticAtIndex (uint32_t index)
|
||||||
{
|
{
|
||||||
|
@ -274,6 +287,7 @@ SBTypeCategory::GetSyntheticAtIndex (uint32_t index)
|
||||||
|
|
||||||
return lldb::SBTypeSynthetic(synth_sp);
|
return lldb::SBTypeSynthetic(synth_sp);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
bool
|
bool
|
||||||
SBTypeCategory::AddTypeFormat (SBTypeNameSpecifier type_name,
|
SBTypeCategory::AddTypeFormat (SBTypeNameSpecifier type_name,
|
||||||
|
@ -311,6 +325,7 @@ SBTypeCategory::DeleteTypeFormat (SBTypeNameSpecifier type_name)
|
||||||
return DataVisualization::ValueFormats::Delete(ConstString(type_name.GetName()));
|
return DataVisualization::ValueFormats::Delete(ConstString(type_name.GetName()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
bool
|
bool
|
||||||
SBTypeCategory::AddTypeSummary (SBTypeNameSpecifier type_name,
|
SBTypeCategory::AddTypeSummary (SBTypeNameSpecifier type_name,
|
||||||
SBTypeSummary summary)
|
SBTypeSummary summary)
|
||||||
|
@ -365,6 +380,7 @@ SBTypeCategory::AddTypeSummary (SBTypeNameSpecifier type_name,
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
bool
|
bool
|
||||||
SBTypeCategory::DeleteTypeSummary (SBTypeNameSpecifier type_name)
|
SBTypeCategory::DeleteTypeSummary (SBTypeNameSpecifier type_name)
|
||||||
|
@ -417,6 +433,7 @@ SBTypeCategory::DeleteTypeFilter (SBTypeNameSpecifier type_name)
|
||||||
return m_opaque_sp->GetFilterNavigator()->Delete(ConstString(type_name.GetName()));
|
return m_opaque_sp->GetFilterNavigator()->Delete(ConstString(type_name.GetName()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
bool
|
bool
|
||||||
SBTypeCategory::AddTypeSynthetic (SBTypeNameSpecifier type_name,
|
SBTypeCategory::AddTypeSynthetic (SBTypeNameSpecifier type_name,
|
||||||
SBTypeSynthetic synth)
|
SBTypeSynthetic synth)
|
||||||
|
@ -486,6 +503,7 @@ SBTypeCategory::DeleteTypeSynthetic (SBTypeNameSpecifier type_name)
|
||||||
else
|
else
|
||||||
return m_opaque_sp->GetSyntheticNavigator()->Delete(ConstString(type_name.GetName()));
|
return m_opaque_sp->GetSyntheticNavigator()->Delete(ConstString(type_name.GetName()));
|
||||||
}
|
}
|
||||||
|
#endif // LLDB_DISABLE_PYTHON
|
||||||
|
|
||||||
bool
|
bool
|
||||||
SBTypeCategory::GetDescription (lldb::SBStream &description,
|
SBTypeCategory::GetDescription (lldb::SBStream &description,
|
||||||
|
|
|
@ -16,6 +16,8 @@
|
||||||
using namespace lldb;
|
using namespace lldb;
|
||||||
using namespace lldb_private;
|
using namespace lldb_private;
|
||||||
|
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
|
|
||||||
SBTypeSummary::SBTypeSummary() :
|
SBTypeSummary::SBTypeSummary() :
|
||||||
m_opaque_sp()
|
m_opaque_sp()
|
||||||
{
|
{
|
||||||
|
@ -296,3 +298,5 @@ SBTypeSummary::ChangeSummaryType (bool want_script)
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // LLDB_DISABLE_PYTHON
|
||||||
|
|
|
@ -16,6 +16,8 @@
|
||||||
using namespace lldb;
|
using namespace lldb;
|
||||||
using namespace lldb_private;
|
using namespace lldb_private;
|
||||||
|
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
|
|
||||||
SBTypeSynthetic::SBTypeSynthetic() :
|
SBTypeSynthetic::SBTypeSynthetic() :
|
||||||
m_opaque_sp()
|
m_opaque_sp()
|
||||||
{
|
{
|
||||||
|
@ -201,3 +203,5 @@ SBTypeSynthetic::CopyOnWrite_Impl()
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // LLDB_DISABLE_PYTHON
|
||||||
|
|
|
@ -310,6 +310,7 @@ SBValue::GetValueDidChange ()
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
const char *
|
const char *
|
||||||
SBValue::GetSummary ()
|
SBValue::GetSummary ()
|
||||||
{
|
{
|
||||||
|
@ -334,6 +335,7 @@ SBValue::GetSummary ()
|
||||||
}
|
}
|
||||||
return cstr;
|
return cstr;
|
||||||
}
|
}
|
||||||
|
#endif // LLDB_DISABLE_PYTHON
|
||||||
|
|
||||||
const char *
|
const char *
|
||||||
SBValue::GetLocation ()
|
SBValue::GetLocation ()
|
||||||
|
@ -399,6 +401,7 @@ SBValue::GetTypeFormat ()
|
||||||
return format;
|
return format;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
lldb::SBTypeSummary
|
lldb::SBTypeSummary
|
||||||
SBValue::GetTypeSummary ()
|
SBValue::GetTypeSummary ()
|
||||||
{
|
{
|
||||||
|
@ -420,6 +423,7 @@ SBValue::GetTypeSummary ()
|
||||||
}
|
}
|
||||||
return summary;
|
return summary;
|
||||||
}
|
}
|
||||||
|
#endif // LLDB_DISABLE_PYTHON
|
||||||
|
|
||||||
lldb::SBTypeFilter
|
lldb::SBTypeFilter
|
||||||
SBValue::GetTypeFilter ()
|
SBValue::GetTypeFilter ()
|
||||||
|
@ -447,6 +451,7 @@ SBValue::GetTypeFilter ()
|
||||||
return filter;
|
return filter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
lldb::SBTypeSynthetic
|
lldb::SBTypeSynthetic
|
||||||
SBValue::GetTypeSynthetic ()
|
SBValue::GetTypeSynthetic ()
|
||||||
{
|
{
|
||||||
|
@ -472,6 +477,7 @@ SBValue::GetTypeSynthetic ()
|
||||||
}
|
}
|
||||||
return synthetic;
|
return synthetic;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
lldb::SBValue
|
lldb::SBValue
|
||||||
SBValue::CreateChildAtOffset (const char *name, uint32_t offset, SBType type)
|
SBValue::CreateChildAtOffset (const char *name, uint32_t offset, SBType type)
|
||||||
|
|
|
@ -589,7 +589,9 @@ FormatManager::FormatManager() :
|
||||||
|
|
||||||
LoadSystemFormatters();
|
LoadSystemFormatters();
|
||||||
LoadSTLFormatters();
|
LoadSTLFormatters();
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
LoadObjCFormatters();
|
LoadObjCFormatters();
|
||||||
|
#endif
|
||||||
|
|
||||||
EnableCategory(m_objc_category_name,CategoryMap::Last);
|
EnableCategory(m_objc_category_name,CategoryMap::Last);
|
||||||
//EnableCategory(m_corefoundation_category_name,CategoryMap::Last);
|
//EnableCategory(m_corefoundation_category_name,CategoryMap::Last);
|
||||||
|
@ -684,6 +686,7 @@ AddSummary(TypeCategoryImpl::SharedPointer category_sp,
|
||||||
summary_sp);
|
summary_sp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef LLDB_DISABLE_PYTHON
|
||||||
void
|
void
|
||||||
FormatManager::LoadObjCFormatters()
|
FormatManager::LoadObjCFormatters()
|
||||||
{
|
{
|
||||||
|
@ -850,3 +853,4 @@ FormatManager::LoadObjCFormatters()
|
||||||
ConstString("vBool32"),
|
ConstString("vBool32"),
|
||||||
vector_flags);
|
vector_flags);
|
||||||
}
|
}
|
||||||
|
#endif // LLDB_DISABLE_PYTHON
|
||||||
|
|
Loading…
Reference in New Issue