aboutsummaryrefslogtreecommitdiff
path: root/openmp/libompd/gdb-plugin/ompd/__init__.py
blob: b9f572dce8dce64ed5c9d6c8c5a3f1b53008179d (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.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)