Author: tfiala
Date: Thu Sep 22 11:29:48 2016
New Revision: 282172

URL: http://llvm.org/viewvc/llvm-project?rev=282172&view=rev
Log:
fix DarwinLog no-info/no-debug case

This started failing recently:
TestDarwinLogSourceDebug.py

It looks like the behavior of specifying the OS_ACTIVITY_MODE
env var with no value used to work for no-info/no-debug content.
That doesn't appear to be the case now.  Switch to specifying
the proper value ('default') when no info-level and no debug-level
content is expected.

Modified:
    
lldb/trunk/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp

Modified: 
lldb/trunk/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp?rev=282172&r1=282171&r2=282172&view=diff
==============================================================================
--- 
lldb/trunk/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp 
(original)
+++ 
lldb/trunk/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp 
Thu Sep 22 11:29:48 2016
@@ -1566,7 +1566,7 @@ Error StructuredDataDarwinLog::FilterLau
   else if (options_sp->GetIncludeInfoLevel())
     env_var_value = "info";
   else
-    env_var_value = "";
+    env_var_value = "default";
 
   if (env_var_value) {
     launch_info.GetEnvironmentEntries().AddOrReplaceEnvironmentVariable(


_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to