This is part of the review: https://reviews.llvm.org/D100181
This patch includes python based plugin code to gdb that enables gdb to support OpenMP specific debugging through OMPD.
Loading of this plugin causes a few new gdb commands to be added ("ompd icv", "ompd parallel", "ompd bt", etc). The invocation of these commands results in the OMPD APIs being invoked with the required arguments to provide the user the needed information.
The plugin code also includes basic wrapper implementations of the callback routines.
Other than these, a few unit tests are included to verify if the return codes of the OMPD APIs align with what is specified in the standard. (ompdAPITests.c)
Could you introduce this as cache variable? Something like
See also https://cmake.org/cmake/help/latest/command/set.html#set-cache-entry.
And perhaps we could choose the default based on the availability of Python 3 development files?