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
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to