summaryrefslogtreecommitdiff
path: root/solenv/gdb
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
parentfd3a23ce33bdec454273ba2bb3ea307b8420bcc0 (diff)
adapt gdb pretty-printers to libmerged
Change-Id: I80236f3c69abe713ddfa8111e8ff76f83954def4
Diffstat (limited to 'solenv/gdb')
-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