Changeset View
Changeset View
Standalone View
Standalone View
gdb/qt5printers/__init__.py
Show All 13 Lines | |||||
14 | # and fitness. In no event shall the author be liable for any | 14 | # and fitness. In no event shall the author be liable for any | ||
15 | # special, indirect or consequential damages or any damages | 15 | # special, indirect or consequential damages or any damages | ||
16 | # whatsoever resulting from loss of use, data or profits, whether | 16 | # whatsoever resulting from loss of use, data or profits, whether | ||
17 | # in an action of contract, negligence or other tortious action, | 17 | # in an action of contract, negligence or other tortious action, | ||
18 | # arising out of or in connection with the use or performance of | 18 | # arising out of or in connection with the use or performance of | ||
19 | # this software. | 19 | # this software. | ||
20 | 20 | | |||
21 | import gdb.printing | 21 | import gdb.printing | ||
22 | import core | 22 | from qt5printers import core | ||
23 | 23 | | |||
24 | """Qt5 Pretty Printers for GDB. | 24 | """Qt5 Pretty Printers for GDB. | ||
25 | 25 | | |||
26 | The printers are split into submodules, one for each Qt library. Each | 26 | The printers are split into submodules, one for each Qt library. Each | ||
27 | submodule has a "printer" attribute that contains a pretty-printer for | 27 | submodule has a "printer" attribute that contains a pretty-printer for | ||
28 | that library. | 28 | that library. | ||
29 | """ | 29 | """ | ||
30 | 30 | | |||
31 | def register_printers(obj): | 31 | def register_printers(obj): | ||
32 | """Registers all known Qt5 pretty-printers.""" | 32 | """Registers all known Qt5 pretty-printers.""" | ||
33 | gdb.printing.register_pretty_printer(obj, core.printer) | 33 | gdb.printing.register_pretty_printer(obj, core.printer) |