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:
Greg Clayton 2010-10-06 18:44:26 +00:00
parent 3005242401
commit b4fb2a991c
2 changed files with 28 additions and 2 deletions

View File

@ -49,6 +49,9 @@ public:
bool
IsValid() const;
lldb::SBProcess
CreateProcess (); // DEPRECATED
lldb::SBProcess
GetProcess ();

View File

@ -105,6 +105,20 @@ SBTarget::GetDebugger () const
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
SBTarget::LaunchProcess
(
@ -118,8 +132,17 @@ SBTarget::LaunchProcess
SBProcess sb_process;
if (m_opaque_sp)
{
// When launching, we always want to create a new process
sb_process.SetProcess (m_opaque_sp->CreateProcess (m_opaque_sp->GetDebugger().GetListener()));
// DEPRECATED, this will change when CreateProcess is removed...
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())
{