[Lldb-commits] [lldb] Add option to pass thread ID to thread select command (PR #73596)

via lldb-commits lldb-commits at lists.llvm.org
Tue Nov 28 15:51:30 PST 2023


================
@@ -1117,6 +1117,11 @@ let Command = "thread plan list" in {
     Desc<"Display thread plans for unreported threads">;
 }
 
+let Command = "thread select" in {
+  def thread_thread_id : Option<"thread_id", "t">,
----------------
jimingham wrote:

I don't know about the underlying code, but our command definition interface doesn't allow multiple long options mapping to the same short option.  You could add a long option `--tid` that has no short option if you wanted to provide that.  You don't really get any benefit to having the short option pointing to both long options anyway.  But I don't think we do this anywhere else, and that does seem a little odd to me.

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


More information about the lldb-commits mailing list