[Lldb-commits] [PATCH] D30454: [LLDB][MIPS] Check if memory_info.GetName() is empty before finding corresponding module.

Nitesh Jain via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Mar 15 04:47:04 PDT 2017


nitesh.jain updated this revision to Diff 91855.
nitesh.jain retitled this revision from "[LLDB][MIPS] Regain Module Name if memory_info.GetName()  is empty" to "[LLDB][MIPS] Check if memory_info.GetName() is empty before finding corresponding module.".
nitesh.jain edited the summary of this revision.

https://reviews.llvm.org/D30454

Files:
  source/Core/DynamicLoader.cpp


Index: source/Core/DynamicLoader.cpp
===================================================================
--- source/Core/DynamicLoader.cpp
+++ source/Core/DynamicLoader.cpp
@@ -189,7 +189,8 @@
     MemoryRegionInfo memory_info;
     Error error = m_process->GetMemoryRegionInfo(base_addr, memory_info);
     if (error.Success() && memory_info.GetMapped() &&
-        memory_info.GetRange().GetRangeBase() == base_addr) {
+        memory_info.GetRange().GetRangeBase() == base_addr && 
+        !(memory_info.GetName().IsEmpty())) {
       ModuleSpec new_module_spec(
           FileSpec(memory_info.GetName().AsCString(), false),
           target.GetArchitecture());


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30454.91855.patch
Type: text/x-patch
Size: 668 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20170315/e8e0eff8/attachment.bin>


More information about the lldb-commits mailing list