summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-10-06 18:44:26 +0000
committerGreg Clayton <gclayton@apple.com>2010-10-06 18:44:26 +0000
commitb4fb2a991c9997417fd6948f5fa613ac581a8ae5 (patch)
tree1ff7c6a7d38aa8c864c711dd78cff6312a2484bd
parent3005242401ddc45072af23137d00a7f4042e4871 (diff)
downloadbcm5719-llvm-b4fb2a991c9997417fd6948f5fa613ac581a8ae5.tar.gz
bcm5719-llvm-b4fb2a991c9997417fd6948f5fa613ac581a8ae5.zip
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
-rw-r--r--lldb/include/lldb/API/SBTarget.h3
-rw-r--r--lldb/source/API/SBTarget.cpp27
2 files changed, 28 insertions, 2 deletions
diff --git a/lldb/include/lldb/API/SBTarget.h b/lldb/include/lldb/API/SBTarget.h
index df8ff10e022..8a47f4428d4 100644
--- a/lldb/include/lldb/API/SBTarget.h
+++ b/lldb/include/lldb/API/SBTarget.h
@@ -50,6 +50,9 @@ public:
IsValid() const;
lldb::SBProcess
+ CreateProcess (); // DEPRECATED
+
+ lldb::SBProcess
GetProcess ();
lldb::SBProcess
diff --git a/lldb/source/API/SBTarget.cpp b/lldb/source/API/SBTarget.cpp
index 39b4e5004eb..27da3aa9186 100644
--- a/lldb/source/API/SBTarget.cpp
+++ b/lldb/source/API/SBTarget.cpp
@@ -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())
{
OpenPOWER on IntegriCloud