Add GDB pretty-printers for basic types (PIString, PIVector, PIMap, PIByteArray, etc.) #213

Merged
andrey merged 5 commits from gdb_pretty_printers into master 2026-08-27 20:11:01 +03:00
Owner

задача #183
Python pretty-printer script (tools/gdb/pip_pp.py) for the GDB debugger:

  • PIString (UTF-16, escapes, surrogate pairs), PIByteArray (hex), PIChar
  • PIVector, PIDeque, PIStringList, PIMap<K,V>, PISet, PIPair<K,V>
  • PIVariant (type + serialized size)
  • pointers: (PIString *) 0x... "hello"; long containers truncated
  • manual: gdb source tools/gdb/pip_pp.py
  • automatic: CMake install ships share/pip/gdb/pip_pp.py and the
    libpip.so-gdb.py auto-load stub next to the library (shared builds)
  • verification: tools/gdb/test/test_pp.sh
  • docs: doc/pages/debugging.md
задача #183 Python pretty-printer script (tools/gdb/pip_pp.py) for the GDB debugger: - PIString (UTF-16, escapes, surrogate pairs), PIByteArray (hex), PIChar - PIVector<T>, PIDeque<T>, PIStringList, PIMap<K,V>, PISet<T>, PIPair<K,V> - PIVariant (type + serialized size) - pointers: (PIString *) 0x... "hello"; long containers truncated - manual: gdb source tools/gdb/pip_pp.py - automatic: CMake install ships share/pip/gdb/pip_pp.py and the libpip.so-gdb.py auto-load stub next to the library (shared builds) - verification: tools/gdb/test/test_pp.sh <build-dir> - docs: doc/pages/debugging.md
andrey added 1 commit 2026-08-23 21:27:04 +03:00
Python pretty-printer script (tools/gdb/pip_pp.py) for the GDB debugger:
- PIString (UTF-16, escapes, surrogate pairs), PIByteArray (hex), PIChar
- PIVector<T>, PIDeque<T>, PIStringList, PIMap<K,V>, PISet<T>, PIPair<K,V>
- PIVariant (type + serialized size)
- pointers: (PIString *) 0x... "hello"; long containers truncated
- manual: gdb source tools/gdb/pip_pp.py
- automatic: CMake install ships share/pip/gdb/pip_pp.py and the
  libpip.so-gdb.py auto-load stub next to the library (shared builds)
- verification: tools/gdb/test/test_pp.sh <build-dir>
- docs: doc/pages/debugging.md
andrey marked the pull request as work in progress 2026-08-24 13:01:21 +03:00
peri4 added 1 commit 2026-08-27 03:40:14 +03:00
peri4 added 1 commit 2026-08-27 13:34:33 +03:00
peri4 marked the pull request as ready for review 2026-08-27 13:36:43 +03:00
andrey added 1 commit 2026-08-27 18:03:38 +03:00
andrey added 1 commit 2026-08-27 20:09:10 +03:00
andrey merged commit 47f9119afe into master 2026-08-27 20:11:01 +03:00
andrey deleted branch gdb_pretty_printers 2026-08-27 20:11:01 +03:00
Sign in to join this conversation.