[Issue 1455] New: DMD does not generate debug info for class and struct members

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Aug 29 23:41:21 PDT 2007


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

           Summary: DMD does not generate debug info for class and struct
                    members
           Product: D
           Version: 2.000
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: cristian at zerobugs.org


Compile the program below with dmd -debug -g, and step inside Bobo::coco and
Foo::coco respectively, using either GDB or ZeroBUGS.

The struct / classes are shown as opaque (GDC generates the correct
information).

import std.stdio;

struct Bobo
{
    int a;

    void coco()
    {
        writefln("Bobo::coco");
        a += 1;
    }
};


class Foo
{
    int a;

    void coco()
    {
        writefln("Foo::coco");
        a += 1;
    }
};

void main()
{
    Bobo b;
    b.coco();

    Foo i = new Foo;
    i.coco();
}


-- 



More information about the Digitalmars-d-bugs mailing list