summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2014-07-11 01:03:57 +0000
committerGreg Clayton <gclayton@apple.com>2014-07-11 01:03:57 +0000
commit205ca1e89f74c61e3c6f272625c9001bcb81d770 (patch)
tree37fdc753fa59eaefad29981998c53a20590ded25
parentfb9756131e84cdab56f411d25700a01888925bad (diff)
downloadbcm5719-llvm-205ca1e89f74c61e3c6f272625c9001bcb81d770.tar.gz
bcm5719-llvm-205ca1e89f74c61e3c6f272625c9001bcb81d770.zip
Enable the ability to enable debug info generation when evaluating expressions.
llvm-svn: 212792
-rw-r--r--lldb/include/lldb/API/SBExpressionOptions.h6
-rw-r--r--lldb/scripts/Python/interface/SBExpressionOptions.i9
-rw-r--r--lldb/source/API/SBExpressionOptions.cpp12
3 files changed, 26 insertions, 1 deletions
diff --git a/lldb/include/lldb/API/SBExpressionOptions.h b/lldb/include/lldb/API/SBExpressionOptions.h
index ef46c7fed82..3241c1571cf 100644
--- a/lldb/include/lldb/API/SBExpressionOptions.h
+++ b/lldb/include/lldb/API/SBExpressionOptions.h
@@ -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);
diff --git a/lldb/scripts/Python/interface/SBExpressionOptions.i b/lldb/scripts/Python/interface/SBExpressionOptions.i
index 525b6a5ce79..d172f35c638 100644
--- a/lldb/scripts/Python/interface/SBExpressionOptions.i
+++ b/lldb/scripts/Python/interface/SBExpressionOptions.i
@@ -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);
diff --git a/lldb/source/API/SBExpressionOptions.cpp b/lldb/source/API/SBExpressionOptions.cpp
index 7fbff38c146..0a55b614c7c 100644
--- a/lldb/source/API/SBExpressionOptions.cpp
+++ b/lldb/source/API/SBExpressionOptions.cpp
@@ -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
{
OpenPOWER on IntegriCloud