www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17675] New: add symbol lookup information in debug info


          Issue ID: 17675
           Summary: add symbol lookup information in debug info
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: symdeb
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: r.sagitario gmx.de

It's currently impossible for a debugger to make sense of globals (especially
if imported from other modules):

module a;
import b;

void main()
    glob = 3;

module b;
int glob;

module c;
int glob;

There is no information available to unambiguously show "glob" while stepping
through main. It would be nice if the compiler would emit symbol lookup
information for the import.

IIRC GDC already does this.

Jul 23 2017