Oracle Solaris Studio 12.2:使用 dbx 调试程序

-thread thread_id

只有导致发生事件的线程与 thread_id 相符时,才会执行该操作。对于您考虑的特定线程,在程序的不同次执行中可能分配不同的 thread_id