Author: spyffe Date: Fri Feb 12 13:45:31 2016 New Revision: 260713 URL: http://llvm.org/viewvc/llvm-project?rev=260713&view=rev Log: Make Target::CalculateProcess() return a sensible result.
The Calculate* functions in general should not derive any information that isn't implicit, but for Target the process pointer is a member so it's fine to return it for CalculateProcess(). Modified: lldb/trunk/source/Target/Target.cpp Modified: lldb/trunk/source/Target/Target.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Target.cpp?rev=260713&r1=260712&r2=260713&view=diff ============================================================================== --- lldb/trunk/source/Target/Target.cpp (original) +++ lldb/trunk/source/Target/Target.cpp Fri Feb 12 13:45:31 2016 @@ -1941,7 +1941,7 @@ Target::CalculateTarget () ProcessSP Target::CalculateProcess () { - return ProcessSP(); + return m_process_sp; } ThreadSP _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits