diff options
| author | Michał Górny <mgorny@gentoo.org> | 2025-08-20 14:36:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-20 14:36:50 +0200 |
| commit | 29067ac6e1eb809dcbcceda40413597dc22c4b6b (patch) | |
| tree | 427753e6494abd4dbc16dbcea218dc1bafb5c406 /mlir/lib/Bytecode/Reader/BytecodeReader.cpp | |
| parent | c8986d1ecbcd50a00ecdb7887f7d43141de3196a (diff) | |
| download | llvm-29067ac6e1eb809dcbcceda40413597dc22c4b6b.zip llvm-29067ac6e1eb809dcbcceda40413597dc22c4b6b.tar.gz llvm-29067ac6e1eb809dcbcceda40413597dc22c4b6b.tar.bz2 | |
[OpenMP][OMPD] Fix GDB plugin to work correctly when installed (#153956)
Fix the `sys.path` logic in the GDB plugin to insert the intended
self-path in the first position rather than appending it to the end. The
latter implied that if `sys.path` (naturally) contained the GDB's
`gdb-plugin` directory, `import ompd` would return the top-level
`ompd/__init__.py` module rather than the `ompd/ompd.py` submodule, as
intended by adding the `ompd/` directory to `sys.path`.
This is intended to be a minimal change necessary to fix the issue.
Alternatively, the code could be modified to import `ompd.ompd` and stop
modifying `sys.path` entirely. However, I do not know why this option
was chosen in the first place, so I can't tell if this won't break
something.
Fixes #153954
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'mlir/lib/Bytecode/Reader/BytecodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
