[Issue 3391] gdb: dynamic arrays and associative arrays are not properly printed

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Oct 17 18:00:49 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=3391



--- Comment #1 from Leandro Lucarella <llucax at gmail.com> 2009-10-17 18:00:47 PDT ---
Maybe this is useful.

For this file:
$ cat -n dbg.d
     1    
     2    void dummy_function()
     3    {
     4        char[][] str_array;
     5        str_array ~= "hello";
     6        str_array ~= "world";
     7        int[2] int_sarray;
     8        int_sarray[0] = 1;
     9        int_sarray[1] = -1;
    10    }
    11    

DMD (svn 1.x branch at r215) generates this:
 <1><6c>: Abbrev Number: 5 (DW_TAG_array_type)
    <6d>   DW_AT_sibling     : <0x7f>
    <71>   DW_AT_type        : <0x65>

While LDC generates:
 <2><86>: Abbrev Number: 3 (DW_TAG_variable)
    <87>   DW_AT_name        : str_array        
    <91>   DW_AT_decl_file   : 1        
    <92>   DW_AT_decl_line   : 4        
    <93>   DW_AT_type        : <0x121>  
    <97>   DW_AT_location    : 2 byte block: 75 70      (DW_OP_breg5: -16)

I will attach the full dump of objdump -W for both DMD and LDC.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list