forked from OSchip/llvm-project
Crash every time with new target logging is now fixed.
llvm-svn: 169394
This commit is contained in:
parent
168ffb36a5
commit
6d0be66afd
|
@ -97,7 +97,8 @@ Target::Target(Debugger &debugger, const ArchSpec &target_arch, const lldb::Plat
|
||||||
if (m_arch.IsValid())
|
if (m_arch.IsValid())
|
||||||
{
|
{
|
||||||
LogSP log_target(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_TARGET));
|
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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue