[Lldb-commits] [lldb] r212792 - Enable the ability to enable debug info generation when evaluating expressions.

Greg Clayton gclayton at apple.com
Thu Jul 10 18:03:58 PDT 2014


Author: gclayton
Date: Thu Jul 10 20:03:57 2014
New Revision: 212792

URL: http://llvm.org/viewvc/llvm-project?rev=212792&view=rev
Log:
Enable the ability to enable debug info generation when evaluating expressions.


Modified:
    lldb/trunk/include/lldb/API/SBExpressionOptions.h
    lldb/trunk/scripts/Python/interface/SBExpressionOptions.i
    lldb/trunk/source/API/SBExpressionOptions.cpp

Modified: lldb/trunk/include/lldb/API/SBExpressionOptions.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/API/SBExpressionOptions.h?rev=212792&r1=212791&r2=212792&view=diff
==============================================================================
--- lldb/trunk/include/lldb/API/SBExpressionOptions.h (original)
+++ lldb/trunk/include/lldb/API/SBExpressionOptions.h Thu Jul 10 20:03:57 2014
@@ -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);

Modified: lldb/trunk/scripts/Python/interface/SBExpressionOptions.i
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/interface/SBExpressionOptions.i?rev=212792&r1=212791&r2=212792&view=diff
==============================================================================
--- lldb/trunk/scripts/Python/interface/SBExpressionOptions.i (original)
+++ lldb/trunk/scripts/Python/interface/SBExpressionOptions.i Thu Jul 10 20:03:57 2014
@@ -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);

Modified: lldb/trunk/source/API/SBExpressionOptions.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBExpressionOptions.cpp?rev=212792&r1=212791&r2=212792&view=diff
==============================================================================
--- lldb/trunk/source/API/SBExpressionOptions.cpp (original)
+++ lldb/trunk/source/API/SBExpressionOptions.cpp Thu Jul 10 20:03:57 2014
@@ -161,6 +161,18 @@ SBExpressionOptions::SetCancelCallback (
     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
 {





More information about the lldb-commits mailing list