[Lldb-commits] [lldb] r260713 - Make Target::CalculateProcess() return a sensible result.

Sean Callanan via lldb-commits lldb-commits at lists.llvm.org
Fri Feb 12 11:45:31 PST 2016


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




More information about the lldb-commits mailing list