diff options
| author | Greg Clayton <gclayton@apple.com> | 2012-04-20 19:50:20 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2012-04-20 19:50:20 +0000 |
| commit | 3e10cf3b5135a4e0f9a7769169d15bc37c8ccfc0 (patch) | |
| tree | bf5986a4ee6f4e596e47edd446b34dfe1be5a425 /lldb/source/Core | |
| parent | 87d6714a762faaa3de867761af9c33543fa41bac (diff) | |
| download | bcm5719-llvm-3e10cf3b5135a4e0f9a7769169d15bc37c8ccfc0.tar.gz bcm5719-llvm-3e10cf3b5135a4e0f9a7769169d15bc37c8ccfc0.zip | |
Don't put the address of the module in the module basename as this hoses up our ability to find shared libraries by name. We now put it into the Module object name.
llvm-svn: 155223
Diffstat (limited to 'lldb/source/Core')
| -rw-r--r-- | lldb/source/Core/Module.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp index 89325762d48..30e9e17ec04 100644 --- a/lldb/source/Core/Module.cpp +++ b/lldb/source/Core/Module.cpp @@ -240,11 +240,6 @@ Module::GetMemoryObjectFile (const lldb::ProcessSP &process_sp, lldb::addr_t hea Mutex::Locker locker (m_mutex); if (process_sp) { - StreamString s; - if (m_file.GetFilename()) - s << m_file.GetFilename(); - s.Printf("[0x%16.16llx]", header_addr); - m_file.GetFilename().SetCString (s.GetData()); m_did_load_objfile = true; std::auto_ptr<DataBufferHeap> data_ap (new DataBufferHeap (512, 0)); Error readmem_error; @@ -258,7 +253,11 @@ Module::GetMemoryObjectFile (const lldb::ProcessSP &process_sp, lldb::addr_t hea m_objfile_sp = ObjectFile::FindPlugin(shared_from_this(), process_sp, header_addr, data_sp); if (m_objfile_sp) { - // Once we get the object file, update our module with the object file's + StreamString s; + s.Printf("0x%16.16llx", header_addr); + m_object_name.SetCString (s.GetData()); + + // Once we get the object file, update our module with the object file's // architecture since it might differ in vendor/os if some parts were // unknown. m_objfile_sp->GetArchitecture (m_arch); |

