[Lldb-commits] [lldb] r259514 - Log error message in SBTarget::Launch

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Tue Feb 2 07:16:21 PST 2016


Author: labath
Date: Tue Feb  2 09:16:20 2016
New Revision: 259514

URL: http://llvm.org/viewvc/llvm-project?rev=259514&view=rev
Log:
Log error message in SBTarget::Launch

Modified:
    lldb/trunk/source/API/SBTarget.cpp

Modified: lldb/trunk/source/API/SBTarget.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBTarget.cpp?rev=259514&r1=259513&r2=259514&view=diff
==============================================================================
--- lldb/trunk/source/API/SBTarget.cpp (original)
+++ lldb/trunk/source/API/SBTarget.cpp Tue Feb  2 09:16:20 2016
@@ -372,9 +372,8 @@ SBTarget::Launch
 
     log = lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API);
     if (log)
-        log->Printf ("SBTarget(%p)::Launch (...) => SBProcess(%p)",
-                     static_cast<void*>(target_sp.get()),
-                     static_cast<void*>(sb_process.GetSP().get()));
+        log->Printf("SBTarget(%p)::Launch (...) => SBProcess(%p), SBError(%s)", static_cast<void *>(target_sp.get()),
+                    static_cast<void *>(sb_process.GetSP().get()), error.GetCString());
 
     return sb_process;
 }




More information about the lldb-commits mailing list