Bug 21154 – DWARF: shared types are not represented
Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
Linux
Creation time
2020-08-13T14:37:40Z
Last change time
2020-08-28T07:44:13Z
Keywords
pull
Assigned to
No Owner
Creator
LucienPe
Comments
Comment #0 by lucien.perregaux — 2020-08-13T14:37:40Z
Consider the following program:
---
module bar;
shared int i;
void main(string[] args)
{
i = 2;
}
---
DMD will emit this:
---
0x00000082: DW_TAG_variable
DW_AT_name ("_D3bar1iOi")
DW_AT_type (0x0000007b "int")
DW_AT_external (0x01)
DW_AT_location (DW_OP_addr 0x97430)
---
The debugger doesn't know that the variable is shared.
Comment #1 by dlang-bot — 2020-08-13T14:45:52Z
@Luhrel created dlang/dmd pull request #11568 "Fix issue 21154 - DWARF: shared types are not represented" fixing this issue:
- Fix issue 21154 - DWARF: shared types are not represented
https://github.com/dlang/dmd/pull/11568
Comment #2 by dlang-bot — 2020-08-28T07:44:13Z
dlang/dmd pull request #11568 "Fix issue 21154 - DWARF: shared types are not represented" was merged into master:
- 69f2a7980c2f3cabb42409b8517d095dece147a3 by Luhrel:
Fix issue 21154 - DWARF: shared types are not represented
https://github.com/dlang/dmd/pull/11568