[Lldb-commits] [lldb] r167666 - /lldb/trunk/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
Jason Molenda
jmolenda at apple.com
Fri Nov 9 22:52:38 PST 2012
Author: jmolenda
Date: Sat Nov 10 00:52:37 2012
New Revision: 167666
URL: http://llvm.org/viewvc/llvm-project?rev=167666&view=rev
Log:
Don't assume that Modules have directories. They may be in-memory-only
things like our favorite "cl_kernels" and so module_directory here
can be NULL.
Modified:
lldb/trunk/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
Modified: lldb/trunk/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp?rev=167666&r1=167665&r2=167666&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp (original)
+++ lldb/trunk/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp Sat Nov 10 00:52:37 2012
@@ -86,7 +86,7 @@
{
path_string.Clear();
path_string.Printf("%s.framework",module_basename);
- if (strstr(module_directory, path_string.GetData()))
+ if (module_directory && strstr(module_directory, path_string.GetData()))
{
// we are going to be in foo.framework/Versions/X/foo
path_string.Clear();
More information about the lldb-commits
mailing list