Blog post about printing associative arrays from GDB
Johannes Riecken
johannes.riecken at gmail.com
Thu Oct 24 13:16:39 UTC 2019
On Thursday, 24 October 2019 at 11:20:07 UTC, Mihails wrote:
> 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.
GDB uses internal functions of C++'s runtime to do the
pretty-printing for C++. Implementing that for D's runtime
library in its current form would seem like a considerable effort
to me, since D's runtime library seems to be a bit hairier with
respect to the internal fields, no?
More information about the Digitalmars-d-announce
mailing list