原链接:https://hex-rays.com/products/ida/support/sdkdoc/group__dbg__funcs__threads.html
Function Documentation
◆ get_thread_qty()
int idaapi get_thread_qty | ( | void | | ) | |
| inline |
Get number of threads.
Type | Synchronous function |
Notification | none (synchronous function) |
◆ getn_thread()
thid_t idaapi getn_thread | ( | int | n | ) | |
| inline |
Get the ID of a thread.
Type | Synchronous function |
Notification | none (synchronous function) |
Parameters
Returns
NO_THREAD if the thread doesn't exist.
◆ get_current_thread()
thid_t idaapi get_current_thread | ( | void | | ) | |
| inline |
Get current thread ID.
Type | Synchronous function |
Notification | none (synchronous function) |
◆ getn_thread_name()
const char* idaapi getn_thread_name | ( | int | n | ) | |
| inline |
Get the NAME of a thread.
Type | Synchronous function |
Notification | none (synchronous function) |
Parameters
n | number of thread, is in range 0..get_thread_qty()-1 or -1 for the current thread |
Returns
thread name or NULL if the thread doesn't exist.
◆ select_thread()
bool idaapi select_thread | ( | thid_t | tid | ) | |
| inline |
Select the given thread as the current debugged thread.
All thread related execution functions will work on this thread. The process must be suspended to select a new thread.
Type | Synchronous function - available as request |
Notification | none (synchronous function) |
Parameters
tid | ID of the thread to select |
Returns
false if the thread doesn't exist.
◆ suspend_thread()
int idaapi suspend_thread | ( | thid_t | tid | ) | |
| inline |
Suspend thread.
Suspending a thread may deadlock the whole application if the suspended was owning some synchronization objects.
Type | Synchronous function - available as request |
Notification | none (synchronous function) |
Parameters
Return values
-1 | network error |
0 | failed |
1 | ok |
◆ resume_thread()
int idaapi resume_thread | ( | thid_t | tid | ) | |
| inline |
Resume thread.
Type | Synchronous function - available as request |
Notification | none (synchronous function) |
Parameters
Return values
-1 | network error |
0 | failed |
1 | ok |