Fixed an assertion that happened when debugging DWARF in .o files with debug
map on macosx.



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@113737 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Target/StackFrame.cpp b/source/Target/StackFrame.cpp
index 6d2699d..874f46b 100644
--- a/source/Target/StackFrame.cpp
+++ b/source/Target/StackFrame.cpp
@@ -136,14 +136,19 @@
         m_flags.Set (eSymbolContextTarget);
     }
     
-    if (m_sc.module_sp.get() == NULL && pc_addr.GetSection())
+    Module *pc_module = pc_addr.GetModule();
+    if (m_sc.module_sp.get() == NULL || m_sc.module_sp.get() != pc_module)
     {
-        Module *pc_module = pc_addr.GetSection()->GetModule();
         if (pc_module)
         {
             m_sc.module_sp = pc_module->GetSP();
             m_flags.Set (eSymbolContextModule);
         }
+        else
+        {
+            m_sc.module_sp.reset();
+        }
+
     }
 }