support for OpenMP programs. This is 5th of 6 patches started from https://reviews.llvm.org/D100181 This plugin code, when loaded in gdb, adds a few commands like ompd icv, ompd bt, ompd parallel. These commands create an interface for GDB to read the OpenMP runtime through libompd. Reviewed By: @dreachem Differential Revision: https://reviews.llvm.org/D100185
16 lines
338 B
Python
16 lines
338 B
Python
import sys
|
|
import os.path
|
|
import traceback
|
|
|
|
if __name__ == "__main__":
|
|
try:
|
|
sys.path.append(os.path.dirname(__file__))
|
|
|
|
import ompd
|
|
ompd.main()
|
|
print('OMPD GDB support loaded')
|
|
print('Run \'ompd init\' to start debugging')
|
|
except Exception as e:
|
|
traceback.print_exc()
|
|
print('Error: OMPD support could not be loaded', e)
|