www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15747] New: debug info missing for static library (dmd only,


          Issue ID: 15747
           Summary: debug info missing for static library (dmd only, ldc
                    is ok)
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: critical
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: timothee.cour2 gmail.com

dmd -oflibfoo.a -lib -g foo.d
dmd -ofmain -g -L-lfoo main.d

When debugging main with lldb, debug info (eg line numbers) will appear only
for symbols in main.d, not for those in the library foo.d

ldc doesn't have this problem (whether using .a or .dyld)

Also somewhat relevant: https://issues.dlang.org/show_bug.cgi?id=15189 [Dwarf
debug info is inaccurate]

Mar 03 2016