Bug 15747 – debug info missing for static library (dmd only, ldc is ok)

Status
NEW
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Mac OS X
Creation time
2016-03-03T08:38:41Z
Last change time
2024-12-13T18:47:02Z
Keywords
DebugInfo
Assigned to
No Owner
Creator
Timothee Cour
Moved to GitHub: dmd#19103 →

Comments

Comment #0 by timothee.cour2 — 2016-03-03T08:38:41Z
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]
Comment #1 by robert.schadek — 2024-12-13T18:47:02Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19103 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB