DWARF output, type of char[]?

BCS ao at pathlink.com
Tue Apr 3 14:02:11 PDT 2007


Reply to Frits,

> Cristian Vlasceanu wrote:
> 
>> I have verified this, with 1.010, ulong and char[] are
>> indistinguishable in the DWARF.
>> 
>> My personal preference is to have it represented as a struct.
>> 
> A struct doesn't tell you how much of the data at .ptr is valid.
> IMHO, for '-g' (native-D debugging info) it should be a special type.
> (Assuming DWARF supports language-specific types, is that the case?)

I think so based on this: http://dwarfstd.org/Dwarf3.pdf

> That way, D-aware debuggers can for example pretty-print char[]
> strings
> as regular strings instead of (size_t, char*) pairs.
> For '-gc' (pretends-to-be-C debugging info) a struct should probably
> be used though.

That's about what I'm thinking.




More information about the Digitalmars-d-debugger mailing list