对 C 使用 pthreads,有没有办法访问特定线程的程序计数器/指令指针?
例子:
void *thread_main(void *arg) {
long thread = (long)arg;
lock (thread);
***print (thread.pc);***
critical_section (thread);
***print (thread.pc);***
unlock (thread);
return NULL;
}
对 C 使用 pthreads,有没有办法访问特定线程的程序计数器/指令指针?
例子:
void *thread_main(void *arg) {
long thread = (long)arg;
lock (thread);
***print (thread.pc);***
critical_section (thread);
***print (thread.pc);***
unlock (thread);
return NULL;
}