DMD's codeview types for arrays

Walter Bright newshound at digitalmars.com
Wed Jan 17 13:07:30 PST 2007


Jascha Wetzel wrote:
> Walter Bright wrote:
>> The problem really is for function return types.
> 
> Does that affect the naming of local symbols?
> The CV types could be left the way they are and yet the complete array
> type could be derived from the mangled name.
> In fact, i'm manually emulating this ATM by using variable names with
> mangled type information in my debuggee's source:
> 
> void debugeeFunc()
> {
>   // char[] test;
>   char[] _D4testAa;
>   // ...
> }
> 
> the generated CV symbol looks like this:
> 
> S_BPREL32 UQUAD [ebp+FFFFFFF8] _D4testAa
> 
> It's fine to have it declared UQUAD, since with the mangled type info in
> the symbol name i can interpret the data at runtime properly.

That's possible. What debugger are you using?



More information about the Digitalmars-d mailing list