[Lldb-commits] [lldb] r157971 - /lldb/trunk/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp

Jim Ingham jingham at apple.com
Mon Jun 4 17:34:37 PDT 2012


Author: jingham
Date: Mon Jun  4 19:34:37 2012
New Revision: 157971

URL: http://llvm.org/viewvc/llvm-project?rev=157971&view=rev
Log:
Make sure the module_uuid_ptr is non-NULL before checking whether its contents match the module's UUID.

Modified:
    lldb/trunk/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp

Modified: lldb/trunk/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp?rev=157971&r1=157970&r2=157971&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp (original)
+++ lldb/trunk/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp Mon Jun  4 19:34:37 2012
@@ -708,7 +708,7 @@
                                                module_spec.GetArchitecture(),
                                                module_sp,
                                                NULL);
-                    if (module_sp && module_sp->GetUUID() == *module_uuid_ptr)
+                    if (module_sp && ((module_uuid_ptr == NULL) || (module_sp->GetUUID() == *module_uuid_ptr)))
                     {
                         //printf ("sdk[%u] last found\n", m_last_module_sdk_idx);
                         error.Clear();
@@ -734,7 +734,7 @@
                                                module_spec.GetArchitecture(),
                                                module_sp,
                                                NULL);
-                    if (module_sp && module_sp->GetUUID() == *module_uuid_ptr)
+                    if (module_sp && ((module_uuid_ptr == NULL) || (module_sp->GetUUID() == *module_uuid_ptr)))
                     {
                         // Remember the index of the last SDK that we found a file
                         // in in case the wrong SDK was selected.





More information about the lldb-commits mailing list