diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2024-04-26 14:54:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-04-27 19:06:19 +0200 |
commit | adaea5d10d157bacf858a31f611bf3f72ec881a2 (patch) | |
tree | f20d04bc14a92389eb55a250b338e190a0f01dd7 /solenv/gdb | |
parent | 05d3a99aa687ee4e1706f9403651379b7ebdad89 (diff) |
solenv, gdb fix error while loading the sw_writerfilter pretty printer
Fixes:
Traceback (most recent call last):
File "/home/vmiklos/git/libreoffice/core-clang/instdir/program/libsw_writerfilterlo.so-gdb.py", line 23, in <module>
module = importlib.import_module('libreoffice.' + mod)
File "/usr/lib64/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'libreoffice.sw_writerfilter'
When loading a DOCX file while gdb is attached to the soffice process.
Change-Id: I383cadfe6afcd3673adecf46388376a6341dbc93
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166742
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'solenv/gdb')
-rw-r--r-- | solenv/gdb/libreoffice/sw_writerfilter.py (renamed from solenv/gdb/libreoffice/writerfilter.py) | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/solenv/gdb/libreoffice/writerfilter.py b/solenv/gdb/libreoffice/sw_writerfilter.py index 487263e92b99..53a5e9a56436 100644 --- a/solenv/gdb/libreoffice/writerfilter.py +++ b/solenv/gdb/libreoffice/sw_writerfilter.py @@ -72,7 +72,7 @@ printer = None def build_pretty_printers(): global printer - printer = printing.Printer("libreoffice/writerfilter") + printer = printing.Printer("libreoffice/sw_writerfilter") printer.add('writerfilter::ooxml::OOXMLProperty', OOXMLPropertyPrinter) printer.add('writerfilter::ooxml::OOXMLPropertySet', OOXMLPropertySetPrinter) printer.add('writerfilter::ooxml::OOXMLPropertySetValue', OOXMLPropertySetValuePrinter) |