aboutsummaryrefslogtreecommitdiff
path: root/openmp/libompd/gdb-plugin/ompd/__init__.py
blob: ab30e65392ea2f16130d15add634895a6879d9ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import sys
import os.path
import traceback

if __name__ == "__main__":
    try:
        sys.path.insert(0, 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)