Warning, file /sdk/kde-dev-scripts/gdb/load-qt5printers.py was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 # Loads pretty printers for Qt5. 0002 # 0003 # Source this from gdb, like: 0004 # source /path/to/kde-dev-scripts/gdb/load-qt5printers.py 0005 # 0006 # Note that, unless you work exclusively with Qt5-based software, you 0007 # probably do not want to load this in your .gdbinit, as if you debug 0008 # a Qt4-based piece of software, the pretty printers will just break. 0009 # 0010 # See the create-qt5-autoloaders.py script for an alternative loading 0011 # mechanism. 0012 # 0013 0014 0015 # Copyright 2014 Alex Merry <alex.merry@kde.org> 0016 # 0017 # Permission to use, copy, modify, and distribute this software 0018 # and its documentation for any purpose and without fee is hereby 0019 # granted, provided that the above copyright notice appear in all 0020 # copies and that both that the copyright notice and this 0021 # permission notice and warranty disclaimer appear in supporting 0022 # documentation, and that the name of the author not be used in 0023 # advertising or publicity pertaining to distribution of the 0024 # software without specific, written prior permission. 0025 # 0026 # The author disclaims all warranties with regard to this 0027 # software, including all implied warranties of merchantability 0028 # and fitness. In no event shall the author be liable for any 0029 # special, indirect or consequential damages or any damages 0030 # whatsoever resulting from loss of use, data or profits, whether 0031 # in an action of contract, negligence or other tortious action, 0032 # arising out of or in connection with the use or performance of 0033 # this software. 0034 0035 0036 import sys 0037 import os.path 0038 0039 moddir = os.path.dirname(__file__) 0040 if not moddir in sys.path: 0041 sys.path.insert(0, moddir) 0042 0043 import qt5printers 0044 qt5printers.register_printers(gdb.current_objfile())