Enable the ability to enable debug info generation when evaluating expressions.

llvm-svn: 212792
This commit is contained in:
Greg Clayton 2014-07-11 01:03:57 +00:00
parent fb9756131e
commit 205ca1e89f
3 changed files with 26 additions and 1 deletions

View File

@ -93,6 +93,12 @@ public:
void
SetCancelCallback (lldb::ExpressionCancelCallback callback, void *baton);
bool
GetGenerateDebugInfo ();
void
SetGenerateDebugInfo (bool b = true);
protected:
SBExpressionOptions (lldb_private::EvaluateExpressionOptions &expression_options);

View File

@ -95,7 +95,14 @@ public:
%feature ("docstring", "Sets the language that LLDB should assume the expression is written in") SetLanguage;
void
SetLanguage (lldb::LanguageType language);
bool
GetGenerateDebugInfo ();
%feature("docstring", "Sets whether to generate debug information for the expression and also controls if a SBModule is generated.") SetGenerateDebugInfo;
void
SetGenerateDebugInfo (bool b = true);
protected:
SBExpressionOptions (lldb_private::EvaluateExpressionOptions &expression_options);

View File

@ -161,6 +161,18 @@ SBExpressionOptions::SetCancelCallback (lldb::ExpressionCancelCallback callback,
m_opaque_ap->SetCancelCallback (callback, baton);
}
bool
SBExpressionOptions::GetGenerateDebugInfo ()
{
return m_opaque_ap->GetGenerateDebugInfo();
}
void
SBExpressionOptions::SetGenerateDebugInfo (bool b)
{
return m_opaque_ap->SetGenerateDebugInfo(b);
}
EvaluateExpressionOptions *
SBExpressionOptions::get() const
{