www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1455] New: DMD does not generate debug info for class and struct members

reply d-bugmail puremagic.com writes:
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 digitalmars.com
        ReportedBy: cristian 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();
}


-- 
Aug 29 2007
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1455


Leandro Lucarella <llucax gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
                 CC|                            |llucax gmail.com
            Summary|DMD does not generate debug |gdb: DMD does not generate
                   |info for class and struct   |debug info for class and
                   |members                     |struct members
           Severity|normal                      |regression



PDT ---
I can confirm this is still present in DMD 2.034 (DMD 1.049 works fine), at
least using GDB 7.0 (with D patches) and -gc compiler flag (-g is known to be
broken when using GDB).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 12 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1455


Leandro Lucarella <llucax gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



PDT ---
Woops, forgot the -gc flag. The test can't be explored because of the bug 1079,
but removing the "import std.stdio" and the calls to writefln() I can see the
struct Bobo and class Foo members without any problems, so I'm closing this
bug.

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