openmp/libompd/gdb-plugin/ompd/__init__.py
raw| 1 | import sys |
| 2 | import os.path |
| 3 | import traceback |
| 4 | |
| 5 | if __name__ == "__main__": |
| 6 | try: |
| 7 | sys.path.insert(0, os.path.dirname(__file__)) |
| 8 | |
| 9 | import ompd |
| 10 | |
| 11 | ompd.main() |
| 12 | print("OMPD GDB support loaded") |
| 13 | print("Run 'ompd init' to start debugging") |
| 14 | except Exception as e: |
| 15 | traceback.print_exc() |
| 16 | print("Error: OMPD support could not be loaded", e) |