diff options
| author | Greg Clayton <gclayton@apple.com> | 2012-04-14 01:42:46 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2012-04-14 01:42:46 +0000 |
| commit | d1cf11a74df14374c8be20dd43e805d2dfb1de07 (patch) | |
| tree | 8d93d9fd95aa1825bf1ae394233bee05208c16f4 /lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp | |
| parent | f5c87882a01b733a98a0138688d2ff0c9e586848 (diff) | |
| download | bcm5719-llvm-d1cf11a74df14374c8be20dd43e805d2dfb1de07.tar.gz bcm5719-llvm-d1cf11a74df14374c8be20dd43e805d2dfb1de07.zip | |
Added a new host function that allows us to run shell command and get the output from them along with the status and signal:
Error
Host::RunShellCommand (const char *command,
const char *working_dir,
int *status_ptr,
int *signo_ptr,
std::string *command_output_ptr,
uint32_t timeout_sec);
This will allow us to use this functionality in the host lldb_private::Platform, and also use it in our lldb-platform binary. It leverages the existing code in Host::LaunchProcess and ProcessLaunchInfo.
llvm-svn: 154730
Diffstat (limited to 'lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp')
| -rw-r--r-- | lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp b/lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp index 58200da5182..c1dc25de277 100644 --- a/lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp +++ b/lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp @@ -330,7 +330,12 @@ PlatformLinux::LaunchProcess (ProcessLaunchInfo &launch_info) if (launch_info.GetFlags().Test (eLaunchFlagLaunchInShell)) { const bool is_localhost = true; - if (!launch_info.ConvertArgumentsForLaunchingInShell (error, is_localhost)) + const bool will_debug = launch_info.GetFlags().Test(eLaunchFlagDebug); + const bool first_arg_is_full_shell_command = false; + if (!launch_info.ConvertArgumentsForLaunchingInShell (error, + is_localhost, + will_debug, + first_arg_is_full_shell_command)) return error; } error = Platform::LaunchProcess (launch_info); |

