GDB Pretty Printers for Custom C++ Types: Writing Your Own
GDB's Python API lets you write pretty printers for any C++ type. An std::variant printer and a ring-buffer printer that I use daily in embedded debugging sessions.
GDB's Python API lets you write pretty printers for any C++ type. An std::variant printer and a ring-buffer printer that I use daily in embedded debugging sessions.
Overview
This note is part of the field-notes archive generated for this site. The summary below is the published excerpt; you can expand the full write-up anytime in the CMS.
Related notes
Tags
- gdb
- debugging
- c++
- python
- embedded
Manish Bookreader
Electronics enthusiast, Embedded Systems Expert, Linux/Networking programmer, and Software Engineer passionate about AI, electronics, books, and cooking.