Bug 8173 – rdmd -g --build-only main looses debug info
Status
RESOLVED
Resolution
MOVED
Severity
normal
Priority
P2
Component
tools
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-05-31T02:23:50Z
Last change time
2021-01-09T19:19:23Z
Assigned to
No Owner
Creator
thelastmammoth
Comments
Comment #0 by thelastmammoth — 2012-05-31T02:23:50Z
Currently, running
rdmd -g --build-only main && gdb main
yields:
warning: Could not find object file "/tmp/.rdmd-503/rdmd-main.d-.../main.o" - no debug information available for "main.d".
(but using the manual way with dmd works... with the names mangled but that's a different issue )
perhaps it would be possible to preserve debug info when -g (or -debug, etc) is present as opposed to having -o- (which appears when --chatty is on) ?
Comment #1 by dlang-bugzilla — 2013-03-10T01:17:44Z
(In reply to comment #0)
> Currently, running
> rdmd -g --build-only main && gdb main
>
> yields:
> warning: Could not find object file "/tmp/.rdmd-503/rdmd-main.d-.../main.o" -
> no debug information available for "main.d".
What OS is this on? You specified "All" but it does not apply to Windows and does not happen on Linux.
> perhaps it would be possible to preserve debug info when -g (or -debug, etc) is
> present as opposed to having -o- (which appears when --chatty is on) ?
I can't make out any meaning from the above.
Judging by the error message, the problem is that rdmd deletes object (.o) files after a successful build.
Comment #2 by pro.mathias.lang — 2021-01-09T19:19:23Z