forked from OSchip/llvm-project
Leaving in deprecated functions until we can get a clean build with the new APIs in place before removing the deprecated functions.
llvm-svn: 115815
This commit is contained in:
parent
3005242401
commit
b4fb2a991c
|
@ -49,6 +49,9 @@ public:
|
||||||
bool
|
bool
|
||||||
IsValid() const;
|
IsValid() const;
|
||||||
|
|
||||||
|
lldb::SBProcess
|
||||||
|
CreateProcess (); // DEPRECATED
|
||||||
|
|
||||||
lldb::SBProcess
|
lldb::SBProcess
|
||||||
GetProcess ();
|
GetProcess ();
|
||||||
|
|
||||||
|
|
|
@ -105,6 +105,20 @@ SBTarget::GetDebugger () const
|
||||||
return debugger;
|
return debugger;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// DEPRECATED
|
||||||
|
SBProcess
|
||||||
|
SBTarget::CreateProcess ()
|
||||||
|
{
|
||||||
|
SBProcess sb_process;
|
||||||
|
|
||||||
|
if (m_opaque_sp)
|
||||||
|
sb_process.SetProcess (m_opaque_sp->CreateProcess (m_opaque_sp->GetDebugger().GetListener()));
|
||||||
|
|
||||||
|
return sb_process;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
SBProcess
|
SBProcess
|
||||||
SBTarget::LaunchProcess
|
SBTarget::LaunchProcess
|
||||||
(
|
(
|
||||||
|
@ -118,8 +132,17 @@ SBTarget::LaunchProcess
|
||||||
SBProcess sb_process;
|
SBProcess sb_process;
|
||||||
if (m_opaque_sp)
|
if (m_opaque_sp)
|
||||||
{
|
{
|
||||||
// When launching, we always want to create a new process
|
// DEPRECATED, this will change when CreateProcess is removed...
|
||||||
sb_process.SetProcess (m_opaque_sp->CreateProcess (m_opaque_sp->GetDebugger().GetListener()));
|
if (m_opaque_sp->GetProcessSP())
|
||||||
|
{
|
||||||
|
sb_process.SetProcess(m_opaque_sp->GetProcessSP());
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// When launching, we always want to create a new process When
|
||||||
|
// SBTarget::CreateProcess is removed, this will always happen.
|
||||||
|
sb_process.SetProcess (m_opaque_sp->CreateProcess (m_opaque_sp->GetDebugger().GetListener()));
|
||||||
|
}
|
||||||
|
|
||||||
if (sb_process.IsValid())
|
if (sb_process.IsValid())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue