<rdar://problem/13443931>
authorGreg Clayton <gclayton@apple.com>
Tue, 19 Mar 2013 00:20:55 +0000 (00:20 +0000)
committerGreg Clayton <gclayton@apple.com>
Tue, 19 Mar 2013 00:20:55 +0000 (00:20 +0000)
commit9585fbfc67a8de61a87e98e6a1b989a1ed98e48d
treec343bd265584d82e6e354722d328758e14f541f9
parent8dfb68e0398ef48d41dc8ea058e9aa750b5fc85f
<rdar://problem/13443931>

Fixed a crasher in the SourceManager where it wasn't checking the m_target member variable for NULL.

In doing this fix, I hardened this class to have weak pointers to the debugger and target in case they do go away. I also changed SBSourceManager to hold onto weak pointers to the debugger and target so they don't keep objects alive by holding a strong reference to them.

llvm-svn: 177365
lldb/include/lldb/Core/Debugger.h
lldb/include/lldb/Core/SourceManager.h
lldb/include/lldb/Target/Target.h
lldb/source/API/SBSourceManager.cpp
lldb/source/Core/Debugger.cpp
lldb/source/Core/SourceManager.cpp
lldb/source/Target/Target.cpp
lldb/tools/lldb-perf/lldbperf.xcodeproj/project.pbxproj