www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18882] New: __gshared not displaying in debuginfo


          Issue ID: 18882
           Summary: __gshared not displaying in debuginfo
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: visuald
          Assignee: nobody puremagic.com
          Reporter: turkeyman gmail.com

In DMD, put a breakpoint somewhere at the top of mars.d: tryMain()
This function refers to `global` frequently, eg `global.params`,
`global.inifilename`, etc.
Notice that the debuginfo seems to be missing for `global`, the debugger just
says "Symbol not found", and you can't inspect the members.

I've seen this problem a lot, but this is a very convenient repro in a popular
codebase :)

May 19 2018