summaryrefslogtreecommitdiff
path: root/openmp/libompd/gdb-plugin/ompd/__init__.py
blob: c2a12f54b326108c6631cffe43325a275988ce45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)