thread命令
命令功能
查看单个/全部thread信息、设置调试作用范围。
命令格式
查看全部thread信息:
thread list [-h | --help]
查看单个thread信息:
thread info [-h | --help] {THREAD_INDEX}
设置调试作用范围:
thread set [-h | --help] {THREAD_INDEX}
- thread命令可简写为t,例如:t info 1。
- THREAD_INDEX:是指线程索引,该参数为必选参数,取值为正整数。
参数说明
参数 |
参数说明 |
|---|---|
无 |
查看全部thread信息。 |
-h/--help |
可选参数,获取帮助信息。 |
参数 |
参数说明 |
|---|---|
{THREAD_INDEX} |
{THREAD_INDEX}替换为实际的线程索引,查看单个thread信息,例如thread info 1。 |
-h/--help |
可选参数,获取帮助信息。 |
参数 |
参数说明 |
|---|---|
{THREAD_INDEX} |
{THREAD_INDEX}替换为实际的线程索引,设置调试作用范围,例如thread set 1。 |
-h/--help |
可选参数,获取帮助信息。 |
使用示例
执行以下命令,查看thread支持的功能信息:
1 | thread -h
|
返回信息如下:
1 2 3 4 5 | The most commonly used thread(t) sub commands are: list Displays all threads in the current rank. info Displays the specified thread in the current rank. set Specifies the currently operated thread. See 'thread(t) COMMAND -h/--help' for more information on a specific command. |
父主题: 调试状态命令