https://issues.dlang.org/show_bug.cgi?id=21154
Issue ID: 21154
Summary: DWARF: shared types are not represented
Product: D
Version: D2
Hardware: All
OS: Linux
Status: NEW
Severity: minor
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
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.
--