[lldb] thread index common completion for commands like `thread select/step-over`
authorGongyu Deng <gy_deng@icloud.com>
Tue, 11 Aug 2020 11:19:27 +0000 (13:19 +0200)
committerRaphael Isemann <teemperor@gmail.com>
Tue, 11 Aug 2020 11:27:13 +0000 (13:27 +0200)
commita952fe236f993b531eceb89e0a18d25bba048185
tree6e4a5841a1939f4663bc360a65d72fd2af35122b
parentbd1013a4825bf2cf58b3c75320f64b24b244f343
[lldb] thread index common completion for commands like `thread select/step-over`

1. Added a common completion completing with a list of the threads of the current process;
2. Apply the common completion above to these commands: thread
   continue/info/exception/select/step-in/step-inst/step-inst-over/step-out/step-over/step-script​
3. Correlated test case test_common_completion_thread_index.

Reviewed By: teemperor

Differential Revision: https://reviews.llvm.org/D84088
lldb/include/lldb/Interpreter/CommandCompletions.h
lldb/source/Commands/CommandCompletions.cpp
lldb/source/Commands/CommandObjectThread.cpp
lldb/test/API/functionalities/completion/TestCompletion.py