Dexed debugger UI now supports inspection of the variables based on mouse motion

Basile B. b2.temp at gmx.com
Sat Feb 15 03:04:56 UTC 2020


On Friday, 14 February 2020 at 16:29:26 UTC, Elronnd wrote:
> On Thursday, 13 February 2020 at 09:06:26 UTC, Basile B. wrote:
>> GDB requires explicit dereferences, that are normally 
>> automatic in D semantic, so big chain of identifiers wont work 
>> and display '???'.
>>
>> Example:
>>
>>     for D       :    a.d.c.somevar
>>     GDB needs   :  (*a).(*d).(*c).somevar
>
> Can you say a->d->c->somevar instead?

That does not work for me (GDB 8.3.5). I remember that there's a 
problem with D classes in GDB [1] (they have the same internal 
type as structs). This makes rewriting the expressions difficult 
without D semantic.

[1] https://sourceware.org/bugzilla/show_bug.cgi?id=22480

Ideally using ptype it would be possible to accurately fix the 
expression copied from the source.


More information about the Digitalmars-d-debugger mailing list