DMD on Linux?

John Demme me at teqdruid.com
Mon Apr 2 10:08:03 PDT 2007


Cristian Vlasceanu wrote:

> Hello,
> 
> Has anyone tried debugging a DMD-compiled program on Linux recently?
> 
> I am seeing incorrect source file paths in Zero and verified with
> dwarfdump and readelf that the DWARF info generated by DMD is wrong. The
>   funny thing is that this used to work in 0.174 or so.
> 
> Anyone having the same experience or am I seeing things?
> 
> I have already email Walter about this issue and as he is slow as usual
> in addressing Linux back-end issues I  was thinking about hacking Zero
> so that if it cannot locate the source (it is just the path that's
> wrong, the filename is okay) then go recursively search for it in the
> parent dir tree of the binary.
> 
> Of course it assumes that one builds their executables in the source dir
> tree.
> 
> Thoughts?
> 
>   Cristian Vlasceanu
> http://www.zerobugs.org

What if there are multiple files by the same name in different directories? 
Also, I frequently have the programs I'm debugging in a separate directory
from the source since I'll be working on a library and the test code is in,
say, a unittest directory or examples directory-- separate from the library
code.

I was debugging a program built with DMD 1.010 the other day and Zero
appeared to be finding the source files fine, though.  I'm using Zero:
Zero (v1.5.41 Jan 31 2007 12:40:08)
The Linux Application Debugger (Linux 2.6.19-gentoo-r2/x86_64) root at capetown

That version of Zero had some pretty bad issues with the stack trace on that
particular program, by the way, but I know it's a pretty old version.

-- 
~John Demme
me at teqdruid.com
http://www.teqdruid.com/


More information about the Digitalmars-d-debugger mailing list