summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/Target.cpp
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2012-12-12 02:23:56 +0000
committerJason Molenda <jmolenda@apple.com>2012-12-12 02:23:56 +0000
commita3f24b3cecd206eb42d40c6ec837c24f9c6793fc (patch)
treed405dd6292c537e534bf9c218c613d0a2eaef72d /lldb/source/Target/Target.cpp
parent69d1405e48d49352c8cc7922d8f48168a03d425c (diff)
downloadbcm5719-llvm-a3f24b3cecd206eb42d40c6ec837c24f9c6793fc.tar.gz
bcm5719-llvm-a3f24b3cecd206eb42d40c6ec837c24f9c6793fc.zip
Add a LOG_TARGET log to Target::SetDefaultArchitecture
to track any architecture setting there. llvm-svn: 169958
Diffstat (limited to 'lldb/source/Target/Target.cpp')
-rw-r--r--lldb/source/Target/Target.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp
index 932ef72ae43..a8cd131580b 100644
--- a/lldb/source/Target/Target.cpp
+++ b/lldb/source/Target/Target.cpp
@@ -96,9 +96,7 @@ Target::Target(Debugger &debugger, const ArchSpec &target_arch, const lldb::Plat
log->Printf ("%p Target::Target()", this);
if (m_arch.IsValid())
{
- LogSP log_target(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_TARGET));
- if (log_target)
- log_target->Printf("Target::Target created with architecture %s (%s)", m_arch.GetArchitectureName(), m_arch.GetTriple().getTriple().c_str());
+ LogIfAnyCategoriesSet(LIBLLDB_LOG_TARGET, "Target::Target created with architecture %s (%s)", m_arch.GetArchitectureName(), m_arch.GetTriple().getTriple().c_str());
}
}
@@ -1672,7 +1670,10 @@ Target::SetDefaultArchitecture (const ArchSpec &arch)
{
TargetPropertiesSP properties_sp(Target::GetGlobalProperties());
if (properties_sp)
+ {
+ LogIfAnyCategoriesSet(LIBLLDB_LOG_TARGET, "Target::SetDefaultArchitecture setting target's default architecture to %s (%s)", arch.GetArchitectureName(), arch.GetTriple().getTriple().c_str());
return properties_sp->SetDefaultArchitecture(arch);
+ }
}
Target *
OpenPOWER on IntegriCloud