https://issues.dlang.org/show_bug.cgi?id=15747

          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: [email protected]
          Reporter: [email protected]

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]

--

Reply via email to