[Lldb-commits] [lldb] r167471 - /lldb/trunk/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp

Greg Clayton gclayton at apple.com
Tue Nov 6 09:50:15 PST 2012


Author: gclayton
Date: Tue Nov  6 11:50:15 2012
New Revision: 167471

URL: http://llvm.org/viewvc/llvm-project?rev=167471&view=rev
Log:
Make sure to check the module is valid after trying to find a shared module.


Modified:
    lldb/trunk/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp

Modified: lldb/trunk/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp?rev=167471&r1=167470&r2=167471&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp (original)
+++ lldb/trunk/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp Tue Nov  6 11:50:15 2012
@@ -227,7 +227,7 @@
                                                  NULL,
                                                  NULL);
 
-            if (exe_module_sp->GetObjectFile() == NULL)
+            if (!exe_module_sp || exe_module_sp->GetObjectFile() == NULL)
             {
                 exe_module_sp.reset();
                 error.SetErrorStringWithFormat ("'%s%s%s' doesn't contain the architecture %s",





More information about the lldb-commits mailing list