Bug 17675 – add symbol lookup information in debug info for global variables

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-07-23T07:27:35Z
Last change time
2024-12-13T18:53:31Z
Keywords
DebugInfo
Assigned to
No Owner
Creator
Rainer Schuetze
See also
https://issues.dlang.org/show_bug.cgi?id=11024, https://issues.dlang.org/show_bug.cgi?id=18882
Moved to GitHub: dmd#19287 →

Comments

Comment #0 by r.sagitario — 2017-07-23T07:27:35Z
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.
Comment #1 by robert.schadek — 2024-12-13T18:53:31Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19287 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB