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

Michael Christensen via lldb-commits lldb-commits at lists.llvm.org
Tue Nov 28 09:58:05 PST 2023


mdko wrote:

@jimingham So it seems that when `-t <tid>` is supplied, the user shouldn't be able to specify a thread index as well, e.g. the following is disallowed:
```
thread select -t 216051 1
```

Would it make sense then for `thread select` to take two possible mutually exclusive options (`-t <tid>`) and (`-i <index>`), with the `-i` option being the default (i.e. doesn't need to be specified)? e.g.
```
thread select -t 216051
```

and
```
thread select -i 1
thread select 1
```
(where the `-i` doesn't need to be supplied by default)?


> It makes the completer much easier to hook up since the option value can complete against the native thread ID's
Sounds good, I'll work on adding the complete for the native thread ID option with the above change.

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


More information about the lldb-commits mailing list