May 31, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8173

           Summary: rdmd -g --build-only main looses debug info
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: thelastmammoth@gmail.com


--- Comment #0 from thelastmammoth@gmail.com 2012-05-31 02:23:50 PDT ---
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) ?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 10, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8173


Vladimir Panteleev <thecybershadow@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thecybershadow@gmail.com


--- Comment #1 from Vladimir Panteleev <thecybershadow@gmail.com> 2013-03-10 11:17:44 EET ---
(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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------