[Lldb-commits] [lldb] r159803 - /lldb/trunk/source/Interpreter/CommandInterpreter.cpp
Jason Molenda
jmolenda at apple.com
Thu Jul 5 19:46:23 PDT 2012
Author: jmolenda
Date: Thu Jul 5 21:46:23 2012
New Revision: 159803
URL: http://llvm.org/viewvc/llvm-project?rev=159803&view=rev
Log:
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.
<rdar://problem/11719396>
Modified:
lldb/trunk/source/Interpreter/CommandInterpreter.cpp
Modified: lldb/trunk/source/Interpreter/CommandInterpreter.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/CommandInterpreter.cpp?rev=159803&r1=159802&r2=159803&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/CommandInterpreter.cpp (original)
+++ lldb/trunk/source/Interpreter/CommandInterpreter.cpp Thu Jul 5 21:46:23 2012
@@ -248,7 +248,11 @@
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);
More information about the lldb-commits
mailing list