Crash every time with new target logging is now fixed.

llvm-svn: 169394
This commit is contained in:
Greg Clayton 2012-12-05 18:23:55 +00:00
parent 168ffb36a5
commit 6d0be66afd
1 changed files with 2 additions and 1 deletions

View File

@ -97,7 +97,8 @@ Target::Target(Debugger &debugger, const ArchSpec &target_arch, const lldb::Plat
if (m_arch.IsValid())
{
LogSP log_target(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_TARGET));
log_target->Printf("Target::Target created with architecture %s (%s)", m_arch.GetArchitectureName(), m_arch.GetTriple().getTriple().c_str());
if (log_target)
log_target->Printf("Target::Target created with architecture %s (%s)", m_arch.GetArchitectureName(), m_arch.GetTriple().getTriple().c_str());
}
}