Add a LaunchSimple API that is nicer to use for quick scripts.

llvm-svn: 128588
This commit is contained in:
Jim Ingham
2011-03-31 00:01:24 +00:00
parent abda3caf67
commit 270684de6e
2 changed files with 48 additions and 39 deletions

View File

@@ -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