[Lldb-commits] [lldb] [lldb/Commands] Alias `script` command to `scripting run` (PR #97263)

Alex Langford via lldb-commits lldb-commits at lists.llvm.org
Tue Jul 2 10:40:04 PDT 2024


================
@@ -518,6 +518,15 @@ void CommandInterpreter::Initialize() {
     AddAlias("re", cmd_obj_sp);
   }
 
+  cmd_obj_sp = GetCommandSPExact("scripting execute");
+  if (cmd_obj_sp) {
+    AddAlias("sc", cmd_obj_sp);
+    AddAlias("scr", cmd_obj_sp);
+    AddAlias("scri", cmd_obj_sp);
+    AddAlias("scrip", cmd_obj_sp);
+    AddAlias("script", cmd_obj_sp);
----------------
bulbazord wrote:

Might be a good idea to write a comment explaining the constraint here? If I came across this code snippet I'd definitely want to know why we do this.

https://github.com/llvm/llvm-project/pull/97263


More information about the lldb-commits mailing list