diff options
author | Greg Clayton <gclayton@apple.com> | 2013-04-29 17:25:54 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2013-04-29 17:25:54 +0000 |
commit | b5ad4ec7a31206227b1cd657dd41b21cc6afc98e (patch) | |
tree | 68f35ccdff9e1410bca21aeb2e216fa91d45a19f /lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp | |
parent | f1f1c626e7fcd3db60641be223308390de288a41 (diff) | |
download | bcm5719-llvm-b5ad4ec7a31206227b1cd657dd41b21cc6afc98e.tar.gz bcm5719-llvm-b5ad4ec7a31206227b1cd657dd41b21cc6afc98e.zip |
Cleanup logging to use the new "std::string FileSpec::GetPath()" function. Also added a similar function for modules:
std::string
Module::GetSpecificationDescription () const;
This returns the module as "/usr/lib/libfoo.dylib" for normal files (calls "std::string FileSpec::GetPath()" on m_file) but it also might include the object name in case the module is for a .o file in a BSD archive ("/usr/lib/libfoo.a(bar.o)"). Cleaned up necessary logging code to use it.
llvm-svn: 180717
Diffstat (limited to 'lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp')
-rw-r--r-- | lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp index a05e9e09d01..12e2174feeb 100644 --- a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp +++ b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp @@ -955,15 +955,9 @@ DynamicLoaderDarwinKernel::KextImageInfo::LoadImageUsingMemoryModule (Process *p s->Printf ("Kernel slid 0x%" PRIx64 " in memory.\n", m_load_address - file_address); } } - if (m_module_sp->GetFileSpec().GetDirectory().IsEmpty()) { - s->Printf ("Loaded kernel file %s\n", m_module_sp->GetFileSpec().GetFilename().AsCString()); - } - else - { - s->Printf ("Loaded kernel file %s/%s\n", - m_module_sp->GetFileSpec().GetDirectory().AsCString(), - m_module_sp->GetFileSpec().GetFilename().AsCString()); + s->Printf ("Loaded kernel file %s\n", + m_module_sp->GetFileSpec().GetPath().c_str()); } s->Flush (); } |