From 85da312d008aa09dfd2ed8126dc2f34a64fddedb Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Fri, 6 Jul 2012 02:46:23 +0000 Subject: [PATCH] Change the "run" / "r" command alias to not use --shell for lldb running natively on arm - on iOS we have to do some extra work to track the inferior process if we launch with a shell intermediary. llvm-svn: 159803 --- lldb/source/Interpreter/CommandInterpreter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp index e18f8293a000..13493bfedcfb 100644 --- a/lldb/source/Interpreter/CommandInterpreter.cpp +++ b/lldb/source/Interpreter/CommandInterpreter.cpp @@ -248,7 +248,11 @@ CommandInterpreter::Initialize () if (cmd_obj_sp) { alias_arguments_vector_sp.reset (new OptionArgVector); +#if defined (__arm__) + ProcessAliasOptionsArgs (cmd_obj_sp, "--", alias_arguments_vector_sp); +#else ProcessAliasOptionsArgs (cmd_obj_sp, "--shell=/bin/bash --", alias_arguments_vector_sp); +#endif AddAlias ("r", cmd_obj_sp); AddAlias ("run", cmd_obj_sp); AddOrReplaceAliasOptions ("r", alias_arguments_vector_sp);