summaryrefslogtreecommitdiffstats
path: root/lldb/source/API
diff options
context:
space:
mode:
authorIlia K <ki.stfu@gmail.com>2015-02-13 14:31:06 +0000
committerIlia K <ki.stfu@gmail.com>2015-02-13 14:31:06 +0000
commit8f37ca56d6d06b73e5c9efa96bce734230c3ec1f (patch)
tree72578ebdb8c2c54dd3bfd1118c795b3c00d29dd6 /lldb/source/API
parent5716bb9faac75b645744cae287a9bf46aeee7700 (diff)
downloadbcm5719-llvm-8f37ca56d6d06b73e5c9efa96bce734230c3ec1f.tar.gz
bcm5719-llvm-8f37ca56d6d06b73e5c9efa96bce734230c3ec1f.zip
Add -exec-arguments command
Summary: This patch adds -exec-arguments command for lldb-mi. -exec-arguments command allows to specify arguments for executable file in MI mode. Also it contains tests for that command. Btw, new added files was formatted by clang-format. Reviewers: abidh, zturner, clayborg Reviewed By: clayborg Subscribers: zturner, emaste, clayborg, jingham, lldb-commits Differential Revision: http://reviews.llvm.org/D6965 llvm-svn: 229110
Diffstat (limited to 'lldb/source/API')
-rw-r--r--lldb/source/API/SBLaunchInfo.cpp6
-rw-r--r--lldb/source/API/SBTarget.cpp18
2 files changed, 24 insertions, 0 deletions
diff --git a/lldb/source/API/SBLaunchInfo.cpp b/lldb/source/API/SBLaunchInfo.cpp
index 007451ee32f..681f5fe0ebf 100644
--- a/lldb/source/API/SBLaunchInfo.cpp
+++ b/lldb/source/API/SBLaunchInfo.cpp
@@ -36,6 +36,12 @@ SBLaunchInfo::ref ()
return *m_opaque_sp;
}
+const lldb_private::ProcessLaunchInfo &
+SBLaunchInfo::ref () const
+{
+ return *m_opaque_sp;
+}
+
lldb::pid_t
SBLaunchInfo::GetProcessID()
{
diff --git a/lldb/source/API/SBTarget.cpp b/lldb/source/API/SBTarget.cpp
index a6d7f0e9271..f7b2dbe50d1 100644
--- a/lldb/source/API/SBTarget.cpp
+++ b/lldb/source/API/SBTarget.cpp
@@ -2568,3 +2568,21 @@ SBTarget::GetStackRedZoneSize()
}
return 0;
}
+
+lldb::SBLaunchInfo
+SBTarget::GetLaunchInfo () const
+{
+ lldb::SBLaunchInfo launch_info(NULL);
+ TargetSP target_sp(GetSP());
+ if (target_sp)
+ launch_info.ref() = m_opaque_sp->GetProcessLaunchInfo();
+ return launch_info;
+}
+
+void
+SBTarget::SetLaunchInfo (const lldb::SBLaunchInfo &launch_info)
+{
+ TargetSP target_sp(GetSP());
+ if (target_sp)
+ m_opaque_sp->SetProcessLaunchInfo(launch_info.ref());
+}
OpenPOWER on IntegriCloud