DDT 0.9.0 released - GDB debugging integration

Bruno Medeiros brunodomedeiros+dng at gmail.com
Wed Feb 12 03:54:58 PST 2014


On 11/02/2014 14:53, Vladimir Krivopalov wrote:
> Hi Bruno,
>
> First off, I wanted to share my appreciation for working on D support in
> Eclipse and especially for introducing the debugging capabilities with
> DDT - really awesome!
>
> I started playing around with the CDT debugger for D programs and so far
> got a question about D dynamic arrays.
> Actually they're already supported by GDB "out of box", and indeed
> debugging with GDB 7.6.2 allows for the following array's output:
>
> <code line> int[] a = [7, 5];
>
> (gdb) print a
> $1 = {7, 5}
>
> but still, if debugging the same code in Eclipse (CDT), I see:
> a    struct _Array_int    {...}
>    length    unsigned long    2
>    ptr    int *    0x7ffff7ecdfd0
>
> While it is definitely possible to implement some custom pretty printers
> for this (and it shouldn't be that hard), I wanted to first ask whether
> you have some clue about how can the D-style array output be forced in
> CDT. Thanks!
>

Please follow this bug: https://github.com/bruno-medeiros/DDT/issues/43
BTW, was that sample run in Linux? Using DMD?



More information about the Digitalmars-d-announce mailing list