Fix some posix assumptions related to running shell commands.
authorZachary Turner <zturner@google.com>
Mon, 8 Dec 2014 21:36:42 +0000 (21:36 +0000)
committerZachary Turner <zturner@google.com>
Mon, 8 Dec 2014 21:36:42 +0000 (21:36 +0000)
commit270e99ab0ae98413b2194b220a8253ec7754b0db
treef8539cef997e0b981d4b01b4bfc8a008620169f4
parenta536df4b28b2ab1ab495d45d674e32f5eec23a28
Fix some posix assumptions related to running shell commands.

This is a resubmit of r223548, which was reverted due to breaking
tests on Linux and Mac.

This resubmit fixes the reason for the revert by adding back some
accidentally removed code which appends -c to the command line
when running /bin/sh.

This resubmit also differs from the original patch in that it sets
the architecture on the ProcessLaunchInfo.  A follow-up patch will
refactor this to separate the logic for different platforms.

Differential Revision: http://reviews.llvm.org/D6553

Reviewed By: Greg Clayton

llvm-svn: 223695
lldb/source/Host/common/FileSpec.cpp
lldb/source/Host/common/Host.cpp
lldb/source/Host/common/HostInfoBase.cpp
lldb/source/Host/windows/FileSystem.cpp
lldb/source/Target/ProcessLaunchInfo.cpp