GDB has some dedicated functionality to improve pretty-printing and expression evaluation of things that too complex to figure out automatically:

- https://sourceware.org/gdb/onlinedocs/gdb/Pretty-Printing.html
- https://sourceware.org/gdb/onlinedocs/gdb/Writing-an-Xmethod.html

GCC, for example, provides such scripts for improved debugging of C++ standard library as part of its distribution. Writing something similar for DMD/GDC/LDC shouldn't be too hard.

Reply via email to