[Lldb-commits] [PATCH] Fix some posixy assumptions that were used during RunShellCommand

Greg Clayton clayborg at gmail.com
Fri Dec 5 14:57:07 PST 2014


The architecture check is in case you have a universal file that contains both x86_64 and i386, you might set the architecture to specify you want to run (debug more like it) the i386 slice even though you are on a 64 bit system (MacOSX supports this). For running a shell command, just let the system do what it needs to do and launch it using the best slice it can and don't set the architecture in the launch info.

So please remove "launch_info.SetArchitecture(HostInfo::GetArchitecture());" from Host::RunShellCommand().

http://reviews.llvm.org/D6553






More information about the lldb-commits mailing list