diff options
| author | Greg Clayton <gclayton@apple.com> | 2012-12-05 18:23:55 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2012-12-05 18:23:55 +0000 |
| commit | 6d0be66afd67bd0c7620f01f49c22a243715c33d (patch) | |
| tree | 62ea175177c7c68e7640ef602593706956ddc13c /lldb/source/Target/Target.cpp | |
| parent | 168ffb36a5e14049aea7c0e2ca7e8cfc4a3f7a7d (diff) | |
| download | bcm5719-llvm-6d0be66afd67bd0c7620f01f49c22a243715c33d.tar.gz bcm5719-llvm-6d0be66afd67bd0c7620f01f49c22a243715c33d.zip | |
Crash every time with new target logging is now fixed.
llvm-svn: 169394
Diffstat (limited to 'lldb/source/Target/Target.cpp')
| -rw-r--r-- | lldb/source/Target/Target.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp index 78047bd49e5..e236f341846 100644 --- a/lldb/source/Target/Target.cpp +++ b/lldb/source/Target/Target.cpp @@ -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()); } } |

