================
Comment at: source/API/SBTarget.cpp:2574
@@ +2573,3 @@
+SBTarget::GetLaunchInfo () const
+{
+    ProcessLaunchInfo launch_info = m_opaque_sp->GetProcessLaunchInfo();
----------------
clayborg wrote:
> You must check that m_opaque_sp is valid and also make a copy of it before 
> you use it in case another thread calls SBThread::Clear():
> 
>     TargetSP target_sp(GetSP());
>     if (target_sp)
>     {
>         ProcessLaunchInfo launch_info = m_opaque_sp->GetProcessLaunchInfo();
>         lldb::SBLaunchInfo sb_launch_info(NULL);
>         sb_launch_info.ref() = launch_info;
>         return sb_launch_info;   
>     }
>     return lldb::SBLaunchInfo();
oops..

http://reviews.llvm.org/D6965

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/



_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits

Reply via email to