DMD's codeview types for arrays

Jascha Wetzel "[firstname]" at mainia.de
Wed Jan 17 02:47:29 PST 2007


thinking about it: why not simply mangle all data symbols just like
function symbols?

Jascha Wetzel wrote:
> How about using type mangling to add the complete array type to the
> symbol name then? The mangled type could be separated from the actual
> symbol name by an escape character invalid in D identifiers.
> That wouldn't hurt non-D debuggers and would still enable D debuggers to
> deal with arrays properly.
> 
> Walter Bright wrote:
>> Jascha Wetzel wrote:
>>> Hi,
>>>
>>> examining the codeview symbols that DMD for windows generates, i've
>>> found that it sets the symbol type of arrays to 0x23 which is UQUAD
>>> (ulong in D). I can't find information on what the array's element
>>> type is.
>>> Can it be determined from the CV data?
>>> If not, shouldn't that be possible?
>>> It would be kind of cumbersome to have to parse the source for that.
>> I tried telling CV that arrays were really:
>>
>> struct Array
>> {    size_t length;
>>     void *ptr;
>> }
>>
>> but it would get hopelessly lost with functions that returned arrays.



More information about the Digitalmars-d mailing list