Thread Levels

The debugger variable $threadlevel contains the value of the current thread level. Its value can be either “native” or “openmp”. When $threadlevel is “native”, the debugger queries the operating system for the thread information and presents that information to the user. When $threadlevel is “openmp”, the debugger queries the shared library libomp_db.so (which comes with the Intel C/C++ and Fortran Compilers)  for the information on OpenMP* entities and presents that information.

The variable $threadlevel can be set to “openmp” only when

The debugger automatically sets $threadlevel to “openmp” when loading a debuggee if it can determine that both these conditions are true; otherwise, it sets $threadlevel to “native”.

On Mac OS* X, the debugger supports POSIX threads, also known as pthreads. The $threadlevel debugger variable is default to "pthreads" and cannot be modified.

For example:

(idb) set $threadlevel = "pthreads"

See also:

Debugging OpenMP* Programs