【发布时间】:2013-07-03 01:59:18
【问题描述】:
GetThreadContext 是一个 Windows API。
BOOL WINAPI GetThreadContext(
_In_ HANDLE hThread,
_Inout_ LPCONTEXT lpContext
);
我想知道如何在 linux 中实现它。 Linux中如何获取指定线程的寄存器信息?
像这样:
pthread_create(thread_id, ...);
...
func(thread_id, reg_info)
{
//get the reg_info by thread_id.
??
}
【问题讨论】:
标签: linux windows cpu-registers