summaryrefslogtreecommitdiff
path: root/solenv/gdb/autoload.template
diff options
context:
space:
mode:
Diffstat (limited to 'solenv/gdb/autoload.template')
-rw-r--r--solenv/gdb/autoload.template6
1 files changed, 4 insertions, 2 deletions
diff --git a/solenv/gdb/autoload.template b/solenv/gdb/autoload.template
index 2dbfa0ab13fd..f6d5e7a7a4a1 100644
--- a/solenv/gdb/autoload.template
+++ b/solenv/gdb/autoload.template
@@ -27,6 +27,7 @@
import os.path
import sys
+import importlib
import gdb
@@ -36,8 +37,9 @@ if gdb.current_objfile():
if pythondir not in sys.path:
sys.path.insert(0, pythondir)
-from %MODULE% import register_pretty_printers
-register_pretty_printers(gdb.current_objfile())
+for mod in str.split("%MODULES%"):
+ module=importlib.import_module("libreoffice."+mod)
+ module.register_pretty_printers(gdb.current_objfile())
try:
import boost