D9918: GDB Qt pretty printers: print size of container

Milian Wolff noreply at phabricator.kde.org
Tue Jan 16 12:43:37 UTC 2018


mwolff created this revision.
mwolff added reviewers: KDevelop, dfaure.
Restricted Application added a subscriber: kdevelop-devel.
mwolff requested review of this revision.

REVISION SUMMARY
  The pretty printers already had a pretty approach for empty
  containers, these got an 'empty ' prepended to their output.
  But when you are printing large containers, how do you know the
  size of the container? Often, it's not straight forward to get
  to the size, e.g. for a QList. To help the user of the debugger,
  always append '(size = N)' to the output, which works for all
  situations. Remove the empty prefix, which is now obsolete.

REPOSITORY
  R32 KDevelop

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D9918

AFFECTED FILES
  plugins/gdb/printers/qt.py
  plugins/gdb/unittests/test_gdbprinters.cpp

To: mwolff, #kdevelop, dfaure
Cc: kdevelop-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20180116/5c289070/attachment.html>


More information about the KDevelop-devel mailing list