Full core file support has been added for mach-o core files.

Tracking modules down when you have a UUID and a path has been improved.

DynamicLoaderDarwinKernel no longer parses mach-o load commands and it
now uses the memory based modules now that we can load modules from memory.

Added a target setting named "target.exec-search-paths" which can be used
to supply a list of directories to use when trying to look for executables.
This allows one or more directories to be used when searching for modules
that may not exist in the SDK/PDK. The target automatically adds the directory
for the main executable to this list so this should help us in tracking down
shared libraries and other binaries. 

llvm-svn: 150426
diff --git a/lldb/source/Target/SectionLoadList.cpp b/lldb/source/Target/SectionLoadList.cpp
index 09431ab..df28023 100644
--- a/lldb/source/Target/SectionLoadList.cpp
+++ b/lldb/source/Target/SectionLoadList.cpp
@@ -74,6 +74,9 @@
                      load_addr);
     }
 
+    if (section->GetByteSize() == 0)
+        return false; // No change
+
     Mutex::Locker locker(m_mutex);
     sect_to_addr_collection::iterator sta_pos = m_sect_to_addr.find(section);
     if (sta_pos != m_sect_to_addr.end())
@@ -89,7 +92,19 @@
     addr_to_sect_collection::iterator ats_pos = m_addr_to_sect.find(load_addr);
     if (ats_pos != m_addr_to_sect.end())
     {
-        assert (section != ats_pos->second);
+        if (section != ats_pos->second)
+        {
+            Module *module = section->GetModule();
+            if (module)
+            {
+                module->ReportWarning ("address 0x%16.16llx maps to more than one section: %s.%s and %s.%s",
+                                       load_addr, 
+                                       module->GetFileSpec().GetFilename().GetCString(), 
+                                       section->GetName().GetCString(),
+                                       ats_pos->second->GetModule()->GetFileSpec().GetFilename().GetCString(), 
+                                       ats_pos->second->GetName().GetCString());
+            }
+        }
         ats_pos->second = section;
     }
     else