Files
clang-p2996/openmp/libompd/gdb-plugin/ompd/__init__.py
Vignesh Balasubramanian d2a6e165e8 [OpenMP][OMPD] GDB plugin code to leverage libompd to provide debugging
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
2022-09-06 11:28:55 +05:30

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)