[Lldb-commits] [PATCH] Add -exec-arguments command
Ilia K
ki.stfu at gmail.com
Thu Feb 12 11:17:58 PST 2015
================
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/
More information about the lldb-commits
mailing list