summaryrefslogtreecommitdiffstats
path: root/lldb/source/API
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2011-03-31 00:01:24 +0000
committerJim Ingham <jingham@apple.com>2011-03-31 00:01:24 +0000
commit270684de6ec4938ab6f99072ff3a058d24243034 (patch)
tree48f46d1d29a4b282eef43535bf9d11cc28facff1 /lldb/source/API
parentabda3caf6784dd55e0f463e01a639a14ced9d3fe (diff)
downloadbcm5719-llvm-270684de6ec4938ab6f99072ff3a058d24243034.tar.gz
bcm5719-llvm-270684de6ec4938ab6f99072ff3a058d24243034.zip
Add a LaunchSimple API that is nicer to use for quick scripts.
llvm-svn: 128588
Diffstat (limited to 'lldb/source/API')
-rw-r--r--lldb/source/API/SBTarget.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/lldb/source/API/SBTarget.cpp b/lldb/source/API/SBTarget.cpp
index da62bf28d32..a54a15ec936 100644
--- a/lldb/source/API/SBTarget.cpp
+++ b/lldb/source/API/SBTarget.cpp
@@ -117,6 +117,32 @@ SBTarget::GetDebugger () const
return debugger;
}
+SBProcess
+SBTarget::LaunchSimple
+(
+ char const **argv,
+ char const **envp,
+ const char *working_directory
+)
+{
+ char *stdin_path = NULL;
+ char *stdout_path = NULL;
+ char *stderr_path = NULL;
+ uint32_t launch_flags = 0;
+ bool stop_at_entry = false;
+ SBError error;
+ SBListener listener = GetDebugger().GetListener();
+ return Launch (listener,
+ argv,
+ envp,
+ stdin_path,
+ stdout_path,
+ stderr_path,
+ working_directory,
+ launch_flags,
+ stop_at_entry,
+ error);
+}
SBProcess
SBTarget::Launch
OpenPOWER on IntegriCloud