diff options
author | Greg Clayton <gclayton@apple.com> | 2012-11-28 00:44:24 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-11-28 00:44:24 +0000 |
commit | e9adcab0a1aee2c1dee308b5beaeee7fba29a61e (patch) | |
tree | 022f9f230c62042a913cbfe5d328acf9058e8de4 /lldb/source/Symbol/ObjectFile.cpp | |
parent | 787508807850bddabb483f8bf5c22da9fe83eba5 (diff) | |
download | bcm5719-llvm-e9adcab0a1aee2c1dee308b5beaeee7fba29a61e.tar.gz bcm5719-llvm-e9adcab0a1aee2c1dee308b5beaeee7fba29a61e.zip |
<rdar://problem/12639603>
Simplify the logging on ObjectFile::~ObjectFile() to not access an classes above the object file (like the module) so we don't crash when logging object lifetimes. The log message contains the "this" pointer value which can be matched up with the constructor log.
llvm-svn: 168754
Diffstat (limited to 'lldb/source/Symbol/ObjectFile.cpp')
-rw-r--r-- | lldb/source/Symbol/ObjectFile.cpp | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/lldb/source/Symbol/ObjectFile.cpp b/lldb/source/Symbol/ObjectFile.cpp index b4418cb7c38..f627f410928 100644 --- a/lldb/source/Symbol/ObjectFile.cpp +++ b/lldb/source/Symbol/ObjectFile.cpp @@ -218,29 +218,7 @@ ObjectFile::~ObjectFile() { LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_OBJECT)); if (log) - { - ModuleSP module_sp (GetModule()); - if (m_file) - { - log->Printf ("%p ObjectFile::~ObjectFile () module = %s/%s, file = %s/%s, offset = 0x%8.8llx, size = %llu\n", - this, - module_sp->GetFileSpec().GetDirectory().AsCString(), - module_sp->GetFileSpec().GetFilename().AsCString(), - m_file.GetDirectory().AsCString(), - m_file.GetFilename().AsCString(), - m_offset, - m_length); - } - else - { - log->Printf ("%p ObjectFile::~ObjectFile () module = %s/%s, file = <NULL>, offset = 0x%8.8llx, size = %llu\n", - this, - module_sp->GetFileSpec().GetDirectory().AsCString(), - module_sp->GetFileSpec().GetFilename().AsCString(), - m_offset, - m_length); - } - } + log->Printf ("%p ObjectFile::~ObjectFile ()\n", this); } bool |