thread¶
Use this command to switch between threads.
thread [ID]
- ID – is the ID of the thread to switch to. The new thread ID must be currently known and returned by “info threads”.
List of thread subcommands:
- thread attach – Attach to a thread
- thread create – Create a thread
- thread detach – Detach a thread
- thread kill – Kill a thread
Type “help thread” followed by thread subcommand name for full documentation. Command name abbreviations are allowed if unambiguous.
thread attach – Attach to a thread¶
Attach to a thread.
thread attach THREAD
- THREAD – is a thread name or id, as returned by “info threads”.
thread create – Create a thread¶
Create a thread.
thread create ENTRYPOINT [ARGS]
ENTRYPOINT – is a function name or address.
ARGS – is optional task arguments. It can be specified like : [myarg]|[“arg1 arg2”]|[“str”].
- Use double-quotes to set multiple arguments with space between.
- Use backslash to escape a character.
See “help set thread create” for a full description of thread options.
thread detach – Detach a thread¶
Detach a thread previously attached.
thread detach [THREAD]
- THREAD – is optional. If specified it is a thread name or id. If not specified, detach the current attached thread.
thread kill – Kill a thread¶
Kill execution of a specified thread.
thread kill [THREAD]
- THREAD – is optional. If specified it is a thread name or id. If not specified, the current attached thread is killed.