[Lldb-commits] [PATCH] D86996: [lldb] Add -l/--language option to script command

Dave Lee via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Sep 1 20:31:31 PDT 2020


kastiglione added inline comments.


================
Comment at: lldb/source/Commands/CommandObjectScript.cpp:50-51
+
+  std::tie(head, tail) = tail.split(' ');
+  if (head != "-l" && head != "--language")
+    return CommandParsed(command);
----------------
generally, lldb supports more than space delimited  flags. For example I often type `expr -lobjc -- ...` with no space. A quick check shows `--language=objc` is also supported. Should these cases be handled too?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D86996/new/

https://reviews.llvm.org/D86996



More information about the lldb-commits mailing list