如何GDB调试因pthread

2025-05-22 00:52:44
推荐回答(1个)
回答1:

比如有两个线程1,2,主线程1执行到某处会pthread_cond_wait(),然后由线程2唤醒,继续执行. 我用gdb调试时却出了问题,调试时主线程执行到pthread_co..