[llvm-branch-commits] [lldb] r197376 - Add a missing declaration of Log in lldb.
Sylvestre Ledru
sylvestre at debian.org
Mon Dec 16 01:49:51 PST 2013
Author: sylvestre
Date: Mon Dec 16 03:49:51 2013
New Revision: 197376
URL: http://llvm.org/viewvc/llvm-project?rev=197376&view=rev
Log:
Add a missing declaration of Log in lldb.
Bill accepted this commit for the 3.4 release.
The build was failing with:
/tmp/buildd/llvm-toolchain-3.4-3.4~+/tools/lldb/source/Host/common/Host.cpp:1222:30: error: request for member 'Printf' in 'log', which is of non-class type 'double(double)throw ()'
log->Printf("Host::GetLLDBPath(ePathTypeLLDBTempSystemDir) => '%s'", g_lldb_tmp_dir.GetCString());
Modified:
lldb/branches/release_34/source/Host/common/Host.cpp
Modified: lldb/branches/release_34/source/Host/common/Host.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/branches/release_34/source/Host/common/Host.cpp?rev=197376&r1=197375&r2=197376&view=diff
==============================================================================
--- lldb/branches/release_34/source/Host/common/Host.cpp (original)
+++ lldb/branches/release_34/source/Host/common/Host.cpp Mon Dec 16 03:49:51 2013
@@ -1217,6 +1217,7 @@ Host::GetLLDBPath (PathType path_type, F
}
if (tmpdir_cstr)
{
+ Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_THREAD));
g_lldb_tmp_dir.SetCString(tmpdir_cstr);
if (log)
log->Printf("Host::GetLLDBPath(ePathTypeLLDBTempSystemDir) => '%s'", g_lldb_tmp_dir.GetCString());
More information about the llvm-branch-commits
mailing list