summaryrefslogtreecommitdiffstats
path: root/solenv/gdb/autoload.template
diff options
context:
space:
mode:
authorPeter Foley <pefoley2@verizon.net>2013-04-13 17:11:26 -0400
committerPeter Foley <pefoley2@verizon.net>2013-04-13 20:17:44 -0400
commitffe09728cb829016dbbe24ffc5ed10cfc15cfd5c (patch)
tree135ebc2fc15ab4d69bfa76f6b6daed612c38278f /solenv/gdb/autoload.template
parentupdate the list of serialized libs (diff)
downloadcore-ffe09728cb829016dbbe24ffc5ed10cfc15cfd5c.tar.gz
core-ffe09728cb829016dbbe24ffc5ed10cfc15cfd5c.zip
adapt gdb pretty-printers to libmerged
Change-Id: I80236f3c69abe713ddfa8111e8ff76f83954def4
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