[Issue 21154] New: DWARF: shared types are not represented

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 13 14:37:40 UTC 2020


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: nobody at puremagic.com
          Reporter: lucien.perregaux at gmail.com

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.

--


More information about the Digitalmars-d-bugs mailing list