Make the debug output that comes as printf's from code called in the target for getti...
authorJim Ingham <jingham@apple.com>
Fri, 18 May 2012 00:05:52 +0000 (00:05 +0000)
committerJim Ingham <jingham@apple.com>
Fri, 18 May 2012 00:05:52 +0000 (00:05 +0000)
llvm-svn: 157029

lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTrampolineHandler.cpp

index 2c6961e..f00d947 100644 (file)
@@ -121,7 +121,7 @@ AppleObjCRuntimeV2::RunFunctionToFindClassName(addr_t object_addr, Thread *threa
     LogSP log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_STEP));  // FIXME - a more appropriate log channel?
     
     int32_t debug;
-    if (log)
+    if (log && log->GetVerbose())
         debug = 1;
     else
         debug = 0;
index 43da899..f8cab06 100644 (file)
@@ -966,7 +966,7 @@ AppleObjCTrampolineHandler::GetStepThroughDispatchPlan (Thread &thread, bool sto
                  dispatch_values.PushValue (flag_value);
                  break;
             }
-            if (log
+            if (log && log->GetVerbose())
                 flag_value.GetScalar() = 1;
             else
                 flag_value.GetScalar() = 0;  // FIXME - Set to 0 when debugging is done.